Sfoglia il codice sorgente

Merge pull request #1118 from Lopuska/patch-17

fix #1117
Luis Anton Rebollo 10 anni fa
parent
commit
be84142502
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

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

@@ -1810,7 +1810,7 @@ void ReflectCubeFeatGLSL::processPix(  Vector<ShaderComponent*> &componentList,
    else
    else
    {
    {
       if ( attn )
       if ( attn )
-         lerpVal = new GenOp( "saturate( @ ).xxxx", attn );
+         lerpVal = new GenOp( "vec4( saturate( @ ) ).xxxx", attn );
       else
       else
          blendOp = Material::Mul;
          blendOp = Material::Mul;
    }
    }