View Full Version : how get the camera coordinates in my fragment shader ?
05-08-2005, 05:00 AM
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 ?
05-08-2005, 07:38 AM
You can pass this value as an uniform, or you can grab it from modelview inverse matrix
05-08-2005, 08:05 AM
ok but if i pass the value as an uniform is it possible of getting the values which are in the opengl part ?
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.