minerender 2.1.0-alpha.15 → 2.1.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -952,7 +952,11 @@ var _Materials = class _Materials {
952
952
 
953
953
  if (SHADE) {
954
954
 
955
- vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
955
+ #ifdef USE_INSTANCING
956
+ vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
957
+ #else
958
+ vec3 N = vec3( modelMatrix * vec4(normal, 0.0) );
959
+ #endif
956
960
 
957
961
  float yLight = (1.0+N.y) * 0.5;
958
962
  light = yLight * (1.0-AMBIENT) + N.x*N.x * XFAC + N.z*N.z * ZFAC + AMBIENT;