[osg-users] osgShadow with GLES

Pierre-Jean Petitprez pierre-jean.petitprez at inria.fr
Mon Jul 4 08:48:06 PDT 2016


Hi,

I would like to use the osgShadow soft shadow map on an Android device (with GLES 2).
I have already written my own Phong shader for my objects which works very well. Now I would like to add the shadow map. I have taken the shader code from the SoftShadowMap.cpp file and I have adapted it to add it in my own shader.
But this does not seem to work, the applied shadow map is always fully white.

Maybe this has to do with the texture coordinates that are used.

Can someone enlighten me on using osgShadow with GLES 2 ?

Thank you!

Cheers,
Pierre-Jean

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








More information about the osg-users mailing list