Thread
:
Vizard Headlight in Shader
View Single Post
#
2
06-27-2012, 01:19 PM
farshizzo
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
The default headlight is a directional light. If you are accessing the light in a fragment shader, then the direction vector will be stored in
gl_LightSource[0].position.xyz
.
farshizzo
View Public Profile
Find all posts by farshizzo