PDA

View Full Version : Camera Direction Shader Trouble


mercuito
11-03-2007, 12:48 AM
Im trying to write a shader plugin that changes colour based on if a certain light if facing towards or away from the camera, i know the vector of the light but how can i find the vector of the camera thats being rendered? once i have that its easy enough. Any help would be awesome thanks.

CGTalk Moderation
11-03-2007, 12:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.