Add OpenGL support.

This commit is contained in:
LuisAntonRebollo 2014-11-08 17:41:17 +01:00
parent c354f59b72
commit dd08fd2e7d
55 changed files with 2957 additions and 802 deletions

View file

@ -1073,7 +1073,10 @@ void OverlayTexFeatGLSL::setTexData( Material::StageData &stageDat,
{
GFXTextureObject *tex = stageDat.getTex( MFT_OverlayMap );
if ( tex )
{
passData.mSamplerNames[ texIndex ] = "overlayMap";
passData.mTexSlot[ texIndex++ ].texObject = tex;
}
}
@ -2383,7 +2386,7 @@ void GlowMaskGLSL::processPix( Vector<ShaderComponent*> &componentList,
// code above that doesn't contribute to the alpha mask.
Var *color = (Var*)LangElement::find( "col" );
if ( color )
output = new GenOp( " @.rgb = 0;\r\n", color );
output = new GenOp( " @.rgb = vec3(0);\r\n", color );
}