Camera in shader - Question
- Q. In a vertex shader the View matrix is passed as uniform parameter
-
- How can you compute the position of the camera ?
- A usefull function to set a point of view is the standard look_at(eye, center, up)
-
- - eye: position of the viewer
- - center: position that the viewer is looking at
- - up: a direction representing the "vertical direction" of the viewer.
- Q. How to compute the View matrix from the look_at parameters ?