Hi, I suggest altering one line of the shader code of StandardShadowMap into:
(_mainFragmentShader) color *= mix( colorAmbientEmissive, gl_Color + gl_SecondaryColor, DynamicShadow() ); \n" Otherwise no specular light is shown. Also it would be nice having a chance to using the existing shader code in a derived class and just add new functions i.e. for bump mapping without cut and paste the shader source code. I suggest putting all the functions in separate shaders and leaving just a minimal main() function. All shaders could go into a vector of shaders being loaded in the init function. This way it would be easy creating additional shaders (shader functions) and just slightly modify the main() function. Is there any maintainer of the code? Otherwise I would try to do the alterations myself. - Werner -
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

