@plastic-software/three 0.175.10 → 0.175.12
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
|
@@ -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
|