Repository navigation
feat(material): KHR_materials_anisotropy — anisotropic specular on LitMaterial + glTF extension - #521
Merged
Conversation
Codeboy-cn
commented
Nov 5, 2026
Collaborator
- Anisotropy_frag: derivative-based tangent frame rotated by the grain angle; the direct specular lobe is multiplied by the anisotropic/isotropic GGX ratio (D and height-correlated Smith V; exactly 1 at strength 0), and the environment lookup uses the bent reflection vector
- MaterialUniform.anisotropy (strength, rotation) with StandShader default
- LitMaterial.anisotropy / anisotropyRotation; clone copies them
- KHR_materials_anisotropy.apply (strength, rotation; texture not sampled yet)
- AnisotropyUtil: CPU mirror of the ratio
- samples/material/Sample_Anisotropy: strength sweep, rotation sweep, GUI sphere
- test/components/Material_Anisotropy.test: ratio limits, API + extension, GPU highlight is round at 0, stretched at 0.9, axis swaps at 90 degrees, strength 0 restores the isotropic image
- test/util: readRegionRGBA16F
…tMaterial + glTF extension - Anisotropy_frag: derivative-based tangent frame rotated by the grain angle; the direct specular lobe is multiplied by the anisotropic/isotropic GGX ratio (D and height-correlated Smith V; exactly 1 at strength 0), and the environment lookup uses the bent reflection vector - MaterialUniform.anisotropy (strength, rotation) with StandShader default - LitMaterial.anisotropy / anisotropyRotation; clone copies them - KHR_materials_anisotropy.apply (strength, rotation; texture not sampled yet) - AnisotropyUtil: CPU mirror of the ratio - samples/material/Sample_Anisotropy: strength sweep, rotation sweep, GUI sphere - test/components/Material_Anisotropy.test: ratio limits, API + extension, GPU highlight is round at 0, stretched at 0.9, axis swaps at 90 degrees, strength 0 restores the isotropic image - test/util: readRegionRGBA16F Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
lslzl3000
force-pushed
the
chain/13-pbr-anisotropy
branch
from
November 5, 2026 13:52
1ef7dd2 to
32ba065
Compare
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.