API

Interface AnisotropyProps

Anisotropy layer properties. Maps to BJS PBRMaterial.anisotropy sub-object. Stretches specular reflections along the tangent direction.

interface AnisotropyProps {
    direction?: readonly [number, number];
    intensity?: number;
    isEnabled: boolean;
    texture?: Texture2D;
}
Index
direction?: readonly [number, number]

Anisotropy direction in tangent space (u, v). Default [1, 0].

intensity?: number

Anisotropy strength (0=isotropic, 1=fully anisotropic). Default 1.0.

isEnabled: boolean

Whether anisotropy is active. Default false.

texture?: Texture2D

KHR_materials_anisotropy anisotropyTexture (linear). RG = per-texel direction (×2-1, rotated by direction), B = per-texel strength (multiplies intensity). May carry a KHR_texture_transform that an animation pointer can drive.