How to obtain eyeposition in shaders?
Posted: 04 Oct 2015, 10:31
Hi to all,
I'm trying to do some porting from GLSL shaders to HLSL in Ventuz. One problem I have is: how can I know my eyeposition (camera position) into the shader code?
For example, even to compute specular lighting effect, I need the eye position to calculate the specular reflection..
I can't find the right constant for "eyeposition" in the documentation:
http://www.ventuz.com/support/help/V4_0 ... hader.html
Anyone can help?
Thank you!
I'm trying to do some porting from GLSL shaders to HLSL in Ventuz. One problem I have is: how can I know my eyeposition (camera position) into the shader code?
For example, even to compute specular lighting effect, I need the eye position to calculate the specular reflection..
I can't find the right constant for "eyeposition" in the documentation:
http://www.ventuz.com/support/help/V4_0 ... hader.html
Anyone can help?
Thank you!