@pixi/3d
    Preparing search index...

    Interface AnisotropyOptions

    Options for a Material3D's anisotropy group (KHR_materials_anisotropy): highlights stretched along one direction, as on brushed metal, vinyl records or carbon fibre

    const brushed = new Material3D({ metallic: 1, roughness: 0.4, anisotropy: { strength: 0.8 } });
    
    interface AnisotropyOptions {
        rotation?: number;
        strength?: number;
        texture?: Texture<TextureSource<any>>;
    }
    Index
    rotation?: number

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

    0
    
    const crossGrain = new Material3D({ anisotropy: { rotation: Math.PI / 2 } });
    
    strength?: number

    How strongly highlights stretch, from 0 to 1

    1
    
    const lightlyBrushed = new Material3D({ anisotropy: { strength: 0.3 } });
    
    texture?: Texture<TextureSource<any>>

    Per-texel direction in RG (a -1 to 1 vector stored as 0 to 1) and strength in B

    Pass it here to have one; to add one later, clone the material with it. Without it the direction is the tangent, turned by rotation, everywhere.

    const carbonFibre = new Material3D({ anisotropy: { texture: weaveDirections } });