소스 검색

fix anisotropy rotation (#27153)

* fixed anisoRotation

* update screenshot
Emmett Lalish 1 년 전
부모
커밋
8f7ae2c8ab
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. BIN
      examples/screenshots/webgl_loader_gltf_anisotropy.jpg
  2. 2 2
      src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js

BIN
examples/screenshots/webgl_loader_gltf_anisotropy.jpg


+ 2 - 2
src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js

@@ -139,8 +139,8 @@ material.roughness = min( material.roughness, 1.0 );
 	// Roughness along the anisotropy bitangent is the material roughness, while the tangent roughness increases with anisotropy.
 	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
 
-	material.anisotropyT = tbn[ 0 ] * anisotropyV.x - tbn[ 1 ] * anisotropyV.y;
-	material.anisotropyB = tbn[ 1 ] * anisotropyV.x + tbn[ 0 ] * anisotropyV.y;
+	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
+	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
 
 #endif
 `;