mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Remove superfluous - sign and switch to other debug shader
This commit is contained in:
parent
147455626e
commit
737563875a
1 changed files with 2 additions and 2 deletions
|
@ -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<osg::Shader> 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<osg::StateSet> stateSet = debugGeometry->getOrCreateStateSet();
|
||||
stateSet->setAttributeAndModes(debugProgram, osg::StateAttribute::ON);
|
||||
|
|
Loading…
Reference in a new issue