View Full Version : how get the camera coordinates in my fragment shader ?
05-08-2005, 06: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, 08:38 AM
You can pass this value as an uniform, or you can grab it from modelview inverse matrix
05-08-2005, 09: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 © 2013 vBulletin Solutions, Inc. All rights reserved.