瀏覽代碼

Fix missing bump uniform declaration in fragment shader

Gary Hsu 8 年之前
父節點
當前提交
697b6ce919
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Shaders/ShadersInclude/pbrFragmentDeclaration.fx

+ 4 - 0
src/Shaders/ShadersInclude/pbrFragmentDeclaration.fx

@@ -34,6 +34,10 @@ uniform vec2 vAlbedoInfos;
 uniform vec3 vAmbientInfos;
 #endif
 
+#ifdef BUMP
+uniform vec3 vBumpInfos;
+#endif
+
 #ifdef OPACITY	
 uniform vec2 vOpacityInfos;
 #endif