@plastic-software/three 0.175.11 → 0.175.13
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/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
export default /* glsl */`
|
|
2
2
|
#ifdef USE_CLEARCOAT_NORMALMAP_TRIPLANAR
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
vec3 clearcoatNormal = normalize(normalMatrix * transpose(mat3(texture3DMatrix)) * texture2DTriplanarNormal( clearcoatNormalMap, clearcoatNormalMapTransform, clearcoatNormalScale, normalize(mat3(texture3DMatrix) * vModelNormal.xyz), triplanarCoords, triplanarWeights ));
|
|
5
|
+
|
|
6
|
+
#ifdef FLIP_SIDED
|
|
7
|
+
|
|
8
|
+
clearcoatNormal = - clearcoatNormal;
|
|
9
|
+
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
#ifdef DOUBLE_SIDED
|
|
13
|
+
|
|
14
|
+
clearcoatNormal = clearcoatNormal * faceDirection;
|
|
15
|
+
|
|
16
|
+
#endif
|
|
5
17
|
|
|
6
18
|
#elif defined( USE_CLEARCOAT_NORMALMAP )
|
|
7
19
|
|