@plastic-software/three 0.175.10 → 0.175.11

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.10",
3
+ "version": "0.175.11",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -4,6 +4,18 @@ export default /* glsl */`
4
4
 
5
5
  normal = normalize(normalMatrix * transpose(mat3(texture3DMatrix)) * texture2DTriplanarNormal( normalMap, normalMapTransform, normalScale, normalize(mat3(texture3DMatrix) * vModelNormal.xyz), triplanarCoords, triplanarWeights ));
6
6
 
7
+ #ifdef FLIP_SIDED
8
+
9
+ normal = - normal;
10
+
11
+ #endif
12
+
13
+ #ifdef DOUBLE_SIDED
14
+
15
+ normal = normal * faceDirection;
16
+
17
+ #endif
18
+
7
19
  #elif defined( USE_NORMALMAP_OBJECTSPACE )
8
20
 
9
21
  normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; // overrides both flatShading and attribute normals