Explorar o código

add clearCoatNormal context only to physical

sunag %!s(int64=6) %!d(string=hai) anos
pai
achega
f5110b235b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/renderers/shaders/ShaderChunk/common.glsl.js

+ 2 - 0
src/renderers/shaders/ShaderChunk/common.glsl.js

@@ -39,7 +39,9 @@ struct GeometricContext {
 	vec3 position;
 	vec3 position;
 	vec3 normal;
 	vec3 normal;
 	vec3 viewDir;
 	vec3 viewDir;
+#ifdef PHYSICAL
 	vec3 clearCoatNormal;
 	vec3 clearCoatNormal;
+#endif
 };
 };
 
 
 vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
 vec3 transformDirection( in vec3 dir, in mat4 matrix ) {