@pixi/3d
    Preparing search index...

    Interface AnisotropyProps

    Runtime controls for a material's anisotropy group, as material.anisotropy

    const material = new Material3D({ metallic: 1, anisotropy: {} });
    material.anisotropy!.rotation = Math.PI / 4;
    interface AnisotropyProps {
        rotation: number;
        strength: number;
        texture?: Texture<TextureSource<any>>;
    }
    Index
    rotation: number

    Rotation of the stretch direction in radians, starting from the surface's tangent

    material.anisotropy!.rotation += 0.01;
    
    strength: number

    How strongly highlights stretch, from 0 to 1

    material.anisotropy!.strength = 0.5;
    
    texture?: Texture<TextureSource<any>>

    The direction map (direction in RG, strength in B), or undefined when the material was built without one

    Read-only: to add one, clone the material with anisotropy: { texture }; to swap it, assign material.textures.anisotropy.