From Mathias Froehlich, "small addition to osg::Texture to include all possible depth test variants for

the shadow depth comparison."
This commit is contained in:
Robert Osfield
2009-03-11 13:08:12 +00:00
parent 771f3a3238
commit ec63cfd930

View File

@@ -511,8 +511,14 @@ class OSG_EXPORT Texture : public osg::StateAttribute
void setShadowComparison(bool flag) { _use_shadow_comparison = flag; }
enum ShadowCompareFunc {
NEVER = GL_NEVER,
LESS = GL_LESS,
EQUAL = GL_EQUAL,
LEQUAL = GL_LEQUAL,
GEQUAL = GL_GEQUAL
GREATER = GL_GREATER,
NOTEQUAL = GL_NOTEQUAL,
GEQUAL = GL_GEQUAL,
ALWAYS = GL_ALWAYS
};
/** Sets shadow texture comparison function. */