From ec63cfd930413dcc0b61ab4144aced3e297a3aa5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 11 Mar 2009 13:08:12 +0000 Subject: [PATCH] From Mathias Froehlich, "small addition to osg::Texture to include all possible depth test variants for the shadow depth comparison." --- include/osg/Texture | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/osg/Texture b/include/osg/Texture index 986d375d2..4786ad37e 100644 --- a/include/osg/Texture +++ b/include/osg/Texture @@ -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. */