videx-3d
    Preparing search index...

    Type Alias CustomMaterialProps

    Common props for 3d components that allow overriding shader materials

    type CustomMaterialProps = {
        customDepthMaterial?: Material;
        customDistanceMaterial?: Material;
        customMaterial?: Material | Material[];
        onMaterialPropertiesChange?: (
            props: Record<string, any>,
            material: Material | Material[],
        ) => void;
    }
    Index

    Properties

    customDepthMaterial?: Material

    set a custom depth material if required

    customDistanceMaterial?: Material

    set a custom distance material if required

    customMaterial?: Material | Material[]

    custom material or array of materials for overriding default component material(s)

    onMaterialPropertiesChange?: (
        props: Record<string, any>,
        material: Material | Material[],
    ) => void

    callback to invoke when component is updated. Use this for setting/uppdaing uniforms in your custom material(s)