Merge pull request #218 from Azaezel/alpha40_vertcolorCorrect

adress #16 - don't need to swizzle vert colors (on GL)
This commit is contained in:
Brian Roberts 2020-06-19 06:49:32 -05:00 committed by GitHub
commit 0364769f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1242,7 +1242,7 @@ void DiffuseVertColorFeatureGLSL::processVert( Vector< ShaderComponent* >& comp
outColor->setStructName( "OUT" );
outColor->setType( "vec4" );
output = new GenOp( " @ = @.bgra;\r\n", outColor, inColor );
output = new GenOp( " @ = @;\r\n", outColor, inColor );
}
else
output = NULL; // Nothing we need to do.

View file

@ -1252,7 +1252,7 @@ void DiffuseVertColorFeatureHLSL::processVert( Vector< ShaderComponent* >& comp
outColor->setStructName( "OUT" );
outColor->setType( "float4" );
output = new GenOp( " @ = @;\r\n", outColor, inColor );
output = new GenOp( " @ = @.bgra;\r\n", outColor, inColor );
}
else
output = NULL; // Nothing we need to do.