mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 07:50:44 +00:00
Fix GLSL out fragment shader color.
This commit is contained in:
parent
80482753e1
commit
4409a12af6
9 changed files with 59 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue