浏览代码

inject getworldtotangent and getworldnormal to ensure var order

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

+ 2 - 0
Engine/source/shaderGen/GLSL/shaderFeatureGLSL.cpp

@@ -2974,6 +2974,8 @@ void ReflectionProbeFeatGLSL::processPix(Vector<ShaderComponent*>& componentList
 
    // Now the wsPosition and wsView.
    Var *wsPosition = getInWsPosition(componentList);
+   Var *worldToTangent = getInWorldToTangent(componentList);
+   Var *wsNormal = getInWorldNormal(componentList);
    Var *wsView = getWsView(wsPosition, meta);
    
    //Reflection Probe WIP