Merge pull request #773 from Areloch/VertexColorHLSLBRGAFix

Removes the BGRA inversion when displaying vertex colors on materials
This commit is contained in:
Brian Roberts 2022-04-26 08:32:44 -05:00 committed by GitHub
commit 9a436f3c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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