Hello.

I found this shader line in the book:
float intensity = dot(vec3(gl_LightSource[0].position), normal );

i was wondering why he doesnt normalize the light source position.
He loads the cow.osg.
The normal vector is normalized using:
normal = normalize(gl_NormalMatrix * gl_Normal);

Thank you for your time.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to