Hi all.

I notice that you can specify the texture unit for SoftShadowMap:

void SoftShadowMap::setJitterTextureUnit(unsigned int jitterTextureUnit)
{
    _jitterTextureUnit=jitterTextureUnit;
}


However, in the method void SoftShadowMap::createUniforms()
I notice the following code:

  _jitterTextureUnit=_shadowTextureUnit+1;


Which obviously overwrites any settings the user previously did...
I'm guessing it is a legacy from the 2.6 version where the
jitterTextureUnit was hardcoded this way?

/Anders

-- 
__________________________________________
Anders Backman, HPC2N
90187 UmeƄ University, Sweden
and...@cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to