Hi Matthew,

I think i have answered this question like two times before, so please try to look into the forum/archives next time. Anyway, probably you'll have to modify the shader source to change the color. Usually after the depth compare the shadowed fragments are given the a biased ambient color. The lines you are looking for are in the SoftShadowMap.cpp right in the beginning. (somewhere around gl_FragColor = gl_Color * (osgShadow_ambientBias.x + shadow * osgShadow_ambientBias.y); \n) IIRC you can set a custom shader to all ShadowMap techniques, so just clone this one from the cpp and bind it manually.

cheers
Sebastian
I've got the same question as the OP, I'm using the SoftShadowMap class in my 
program and would like to change the shadow colour to something other than 
black. I had a look through the source of SoftShadowMap but couldn't find an 
obvious answer (still fairly new to OSG). Any help would be appreciated!

Cheers,
Matthew

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37293#37293





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to