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