@plastic-software/three 0.175.4 → 0.175.5

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.4",
3
+ "version": "0.175.5",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -68,16 +68,20 @@ float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
68
68
 
69
69
  mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
70
70
 
71
- #elif defined( USE_CLEARCOAT_NORMALMAP_CYLINDRICAL )
71
+ #elif defined( USE_CLEARCOAT_NORMALMAP_CYLINDRICAL )
72
72
 
73
- vec3 tangent2 = normalize(cross(normal, mat3(modelViewMatrix) * transpose(mat3(texture3DMatrix)) * vec3(0, 1, 0)));
74
- vec3 bitangent2 = cross(tangent2, normal);
75
- mat3 tbn2 = mat3(tangent2, bitangent2, normal);
73
+ vec3 tangent2 = normalize(cross(normal, mat3(modelViewMatrix) * transpose(mat3(texture3DMatrix)) * vec3(0, 1, 0)));
74
+ vec3 bitangent2 = cross(tangent2, normal);
75
+ mat3 tbn2 = mat3(tangent2, bitangent2, normal);
76
76
 
77
77
  #elif defined( USE_CLEARCOAT_NORMALMAP_UV )
78
78
 
79
79
  mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
80
80
 
81
+ #else
82
+
83
+ mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vUv );
84
+
81
85
  #endif
82
86
 
83
87
  #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )