How get the camera coordinates in my fragment shader?

i have read the doc and i don’t find any variable which coorespond to the camera position and the camera target.
How can i do ?

You can pass this value as an uniform, or you can grab it from modelview inverse matrix

ok but if i pass the value as an uniform is it possible of getting the values which are in the opengl part ?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.