浏览代码

use the right recreation when lacking a composite map (still need to do up matinfo flags)

AzaezelX 6 年之前
父节点
当前提交
7108c8cc64
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp

+ 1 - 1
Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp

@@ -3121,7 +3121,7 @@ void ReflectionProbeFeatHLSL::processPix(Vector<ShaderComponent*> &componentList
 
       matinfo = new Var("specularColor", "float4");
 	   LangElement* colorDecl = new DecOp(matinfo);
-	   meta->addStatement(new GenOp("   @ = float4(0.0,@,1.0,@);\r\n", colorDecl, smoothness, metalness)); //reconstruct matinfo, no ao darkening
+	   meta->addStatement(new GenOp("   @ = float4(0.0,1.0,@,@);\r\n", colorDecl, smoothness, metalness)); //reconstruct matinfo, no ao darkening
    }
 
    Var *bumpNormal = (Var*)LangElement::find("bumpNormal");