From 737563875ab4929c902327310e04ad77b9e056f0 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Sat, 14 Oct 2017 01:13:45 +0100 Subject: [PATCH] Remove superfluous - sign and switch to other debug shader --- apps/openmw/mwrender/shadow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/shadow.cpp b/apps/openmw/mwrender/shadow.cpp index 65ce8d5bde..2f57f6e066 100644 --- a/apps/openmw/mwrender/shadow.cpp +++ b/apps/openmw/mwrender/shadow.cpp @@ -17,7 +17,7 @@ namespace MWRender " \n" "void main(void) \n" "{ \n" -#if 0 +#if 1 " float f = texture2D( texture, gl_TexCoord[0] ).r; \n" " \n" " f = 256.0 * f; \n" @@ -62,7 +62,7 @@ namespace MWRender osg::ref_ptr fragmentShader = new osg::Shader(osg::Shader::FRAGMENT, debugFragmentShaderSource); debugProgram->addShader(fragmentShader); - debugGeometry = osg::createTexturedQuadGeometry(osg::Vec3(-1, -1, 0), osg::Vec3(2, 0, 0), osg::Vec3(0, 2, 0));- + debugGeometry = osg::createTexturedQuadGeometry(osg::Vec3(-1, -1, 0), osg::Vec3(2, 0, 0), osg::Vec3(0, 2, 0)); debugCamera->addChild(debugGeometry); osg::ref_ptr stateSet = debugGeometry->getOrCreateStateSet(); stateSet->setAttributeAndModes(debugProgram, osg::StateAttribute::ON);