Ver Fonte

set gl vertcolor mapping to bgra format, the same as we do for stateblocks

Azaezel há 6 anos atrás
pai
commit
b50f72b109
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

+ 1 - 1
Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

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