Fix GLSL out fragment shader color.

This commit is contained in:
LuisAntonRebollo 2014-11-30 05:32:40 +01:00
parent 80482753e1
commit 4409a12af6
9 changed files with 59 additions and 17 deletions

View file

@ -89,10 +89,11 @@ LangElement* ShaderFeatureGLSL::assignColor( LangElement *elem,
{
// create color var
color = new Var;
color->setName( getOutputTargetVarName( outputTarget ) );
color->setType( "vec4" );
color->setName( getOutputTargetVarName( outputTarget ) );
color->setStructName( "OUT" );
return new GenOp( "@ = @", new DecOp(color), elem );
return new GenOp( "@ = @", color, elem );
}
LangElement *assign;
@ -2186,6 +2187,7 @@ void FogFeatGLSL::processPix( Vector<ShaderComponent*> &componentList,
color = new Var;
color->setType( "vec4" );
color->setName( "col" );
color->setStructName("OUT");
}
Var *fogAmount;