Anis 10 年之前
父节点
当前提交
f05b1b5cbd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

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

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