Skip to content

Commit 8f7ae2c

Browse files
authored
fix anisotropy rotation (#27153)
* fixed anisoRotation * update screenshot
1 parent ec09a96 commit 8f7ae2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
-350 Bytes
Loading

src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ material.roughness = min( material.roughness, 1.0 );
139139
// Roughness along the anisotropy bitangent is the material roughness, while the tangent roughness increases with anisotropy.
140140
material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
141141
142-
material.anisotropyT = tbn[ 0 ] * anisotropyV.x - tbn[ 1 ] * anisotropyV.y;
143-
material.anisotropyB = tbn[ 1 ] * anisotropyV.x + tbn[ 0 ] * anisotropyV.y;
142+
material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
143+
material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
144144
145145
#endif
146146
`;

0 commit comments

Comments
 (0)