Skip to content

feat(material): KHR_materials_anisotropy — anisotropic specular on LitMaterial + glTF extension - #521

Merged
Codeboy-cn merged 1 commit into
Orillusion:devfrom
Codeboy-cn:chain/13-pbr-anisotropy
Nov 5, 2026
Merged

Codeboy-cn merged 1 commit into
Orillusion:devfrom
Codeboy-cn:chain/13-pbr-anisotropy

Conversation

@Codeboy-cn

Copy link
Copy Markdown
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
lslzl3000 force-pushed the chain/13-pbr-anisotropy branch from 1ef7dd2 to 32ba065 Compare November 5, 2026 13:52
@Codeboy-cn
Codeboy-cn merged commit bdb6c0c into Orillusion:dev Nov 5, 2026
1 check passed
@lslzl3000 lslzl3000 mentioned this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants