Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lightObstaclesTextureArray->setTextureSize(_lightObstaclesTextureArraySize, _lightObstaclesTextureArraySize, numLightsWithObstacles);
- lightObstaclesTextureArray->setInternalFormat(GL_DEPTH_COMPONENT32);
- lightObstaclesTextureArray->setShadowTextureMode(osg::Texture2D::LUMINANCE);
- lightObstaclesTextureArray->setShadowComparison(true);
- lightObstaclesTextureArray->setShadowCompareFunc(osg::Texture::LEQUAL);
- lightObstaclesTextureArray->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_BORDER);
- lightObstaclesTextureArray->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_BORDER);
- lightObstaclesTextureArray->setWrap(osg::Texture::WRAP_R, osg::Texture::CLAMP_TO_BORDER);
- lightObstaclesTextureArray->setFilter(osg::Texture::MIN_FILTER, osg::Texture::NEAREST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement