@plastic-software/three 0.175.12 → 0.175.14

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@plastic-software/three",
3
- "version": "0.175.12",
3
+ "version": "0.175.14",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -1,7 +1,19 @@
1
1
  export default /* glsl */`
2
2
  #ifdef USE_CLEARCOAT_NORMALMAP_TRIPLANAR
3
3
 
4
- normal = normalize(normalMatrix * transpose(mat3(texture3DMatrix)) * texture2DTriplanarNormal( clearcoatNormalMap, clearcoatNormalMapTransform, clearcoatNormalScale, normalize(mat3(texture3DMatrix) * vModelNormal.xyz), triplanarCoords, triplanarWeights ));
4
+ 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