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.
@@ -957,7 +957,11 @@ var Materials = class _Materials {
957
957
 
958
958
  if (SHADE) {
959
959
 
960
- vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
960
+ #ifdef USE_INSTANCING
961
+ vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
962
+ #else
963
+ vec3 N = vec3( modelMatrix * vec4(normal, 0.0) );
964
+ #endif
961
965
 
962
966
  float yLight = (1.0+N.y) * 0.5;
963
967
  light = yLight * (1.0-AMBIENT) + N.x*N.x * XFAC + N.z*N.z * ZFAC + AMBIENT;