materialAnisotropy
Provides the material's anisotropy effect, used to simulate stretched, non-circular highlights on surfaces like brushed metal, hair, or silk.
Core Advantages
Completely abstracts the complex physics of anisotropic BRDFs and seamlessly integrates with material properties like `.anisotropy` and `.anisotropyRotation`, greatly simplifying the creation of advanced materials with directional textures.
Common Uses
Simulating the linear highlights on brushed metals (e.g., stainless steel, CDs).
Rendering hair or fur to produce the characteristic 'angel ring' sheen.
Recreating the unique luster of fabric fibers like silk and velvet.
Using maps for precise highlight control on complex surfaces like carbon fiber or vinyl records.
How to adjust
Adjust by modifying material properties in JavaScript. `material.anisotropy` (0-1) controls the highlight stretching intensity. `material.anisotropyRotation` (in radians) controls the stretching direction. You can also use `anisotropyMap` or `anisotropyVectorMap` for precise, per-pixel control.
Code Examples
1// In a physical lighting model, the materialAnisotropy node provides the final effect.
2// Its value is determined by material.anisotropy, material.anisotropyRotation, etc.
3// (Typically used internally by materialPhysical, no direct user connection needed)
4
5// Example: Procedurally rotating the highlight direction
6material.anisotropy = 1;
7material.anisotropyRotation = timerLocal(); // Highlight rotates over time