webani - v1.0.0
    Preparing search index...

    Options for initializing a WebaniMaterial.

    type WebaniMaterialOptions = {
        baseColorImage?: ImageBitmap;
        color?: Vector3;
        metallic?: number;
        metallicRoughnessImage?: ImageBitmap;
        normalMapImage?: ImageBitmap;
        normalScale?: number;
        opacity?: number;
        roughness?: number;
    }
    Index

    Properties

    baseColorImage?: ImageBitmap

    The image to use for the base color texture (optional).

    color?: Vector3

    The base color of the material, represented as a vector (default is Colors.BLACK).

    metallic?: number

    The metallic factor of the material, from 0 (non-metallic) to 1 (fully metallic) (default is 0).

    metallicRoughnessImage?: ImageBitmap

    The image to use for the metallic-roughness texture (optional).

    normalMapImage?: ImageBitmap

    The image to use for the normal map (optional).

    normalScale?: number

    The scaling factor for the normal map (optional).

    opacity?: number

    The opacity of the material, from 0 (fully transparent) to 1 (fully opaque) (default is 1).

    roughness?: number

    The roughness factor of the material, from 0 (smooth) to 1 (rough) (default is 1).