Re: [osg-users] Default vertex shader

2008-07-24 Thread Denis Nikolskiy
Hello Jean-Sebastien, I followed your advice. Everything works well. Thanks a lot for clarifying those things and for your help. Denis On Jul 23, 2008, at 4:58 AM, Jean-Sébastien Guay wrote: Hello Denis, When I added vertex shader, the object was not shadowed properly (with the same

Re: [osg-users] Default vertex shader

2008-07-24 Thread Jean-Sébastien Guay
Hi Denis, I followed your advice. Everything works well. Thanks a lot for clarifying those things and for your help. Glad I could help, J-S -- __ Jean-Sebastien Guay[EMAIL PROTECTED]

Re: [osg-users] Default vertex shader

2008-07-23 Thread Jean-Sébastien Guay
Hello Denis, When I added vertex shader, the object was not shadowed properly (with the same exact fragment shader). I suspect I'm doing something wrong with the texture coordinates in a vertex shader. I looked in ShadowMap.cpp, it has only fragment shaders. Do you know where can I find

[osg-users] Default vertex shader

2008-07-22 Thread Denis Nikolskiy
Hello Jean-Sebastien, Check the top of the shader in src/osgShadow/ShadowMap.cpp, there is a bunch of uniforms with names that start with osgShadow_. You can use those same variable names in other shaders, and you will then have access to the same data (as long as the shader is on a node