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.
@@ -1112,7 +1112,11 @@ var Materials = class _Materials {
1112
1112
 
1113
1113
  if (SHADE) {
1114
1114
 
1115
- vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
1115
+ #ifdef USE_INSTANCING
1116
+ vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
1117
+ #else
1118
+ vec3 N = vec3( modelMatrix * vec4(normal, 0.0) );
1119
+ #endif
1116
1120
 
1117
1121
  float yLight = (1.0+N.y) * 0.5;
1118
1122
  light = yLight * (1.0-AMBIENT) + N.x*N.x * XFAC + N.z*N.z * ZFAC + AMBIENT;