@plastic-software/three 0.175.5 → 0.175.8

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.5",
3
+ "version": "0.175.8",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -42,10 +42,6 @@ float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
42
42
  vec3 tangent = normalize(cross(normal, mat3(modelViewMatrix) * transpose(mat3(texture3DMatrix)) * vec3(0, 1, 0)));
43
43
  vec3 bitangent = cross(tangent, normal);
44
44
  mat3 tbn = mat3(tangent, bitangent, normal);
45
-
46
- #elif defined( USE_CLEARCOAT_NORMALMAP_UV )
47
-
48
- mat3 tbn = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
49
45
 
50
46
  #else
51
47
 
@@ -68,16 +64,16 @@ float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
68
64
 
69
65
  mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
70
66
 
71
- #elif defined( USE_CLEARCOAT_NORMALMAP_CYLINDRICAL )
67
+ #elif defined( USE_CLEARCOAT_NORMALMAP_UV )
68
+
69
+ mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
70
+
71
+ #elif defined( USE_CLEARCOAT_NORMALMAP_CYLINDRICAL ) || (defined( USE_ANISOTROPY ) && !defined( USE_UV1 ) || !defined( USE_UV2 ) && !defined( USE_UV3 ))
72
72
 
73
73
  vec3 tangent2 = normalize(cross(normal, mat3(modelViewMatrix) * transpose(mat3(texture3DMatrix)) * vec3(0, 1, 0)));
74
74
  vec3 bitangent2 = cross(tangent2, normal);
75
75
  mat3 tbn2 = mat3(tangent2, bitangent2, normal);
76
76
 
77
- #elif defined( USE_CLEARCOAT_NORMALMAP_UV )
78
-
79
- mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
80
-
81
77
  #else
82
78
 
83
79
  mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vUv );