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.
- package/dist/browser/index.js +5 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +5 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +5 -1
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.js +5 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +5 -1
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -66946,7 +66946,11 @@ return ${compiler2.callType("value", tagType)}
|
|
|
66946
66946
|
|
|
66947
66947
|
if (SHADE) {
|
|
66948
66948
|
|
|
66949
|
-
|
|
66949
|
+
#ifdef USE_INSTANCING
|
|
66950
|
+
vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
|
|
66951
|
+
#else
|
|
66952
|
+
vec3 N = vec3( modelMatrix * vec4(normal, 0.0) );
|
|
66953
|
+
#endif
|
|
66950
66954
|
|
|
66951
66955
|
float yLight = (1.0+N.y) * 0.5;
|
|
66952
66956
|
light = yLight * (1.0-AMBIENT) + N.x*N.x * XFAC + N.z*N.z * ZFAC + AMBIENT;
|