PluginSamplerDecl | Babylon Lite API

API
Babylon Lite API
    Preparing search index...

    Interface PluginSamplerDecl

    A texture + sampler pair contributed by a plugin. texture/sampler are the WGSL variable names used by the plugin's custom code; the engine wires up the GPU bindings in declaration order from MaterialPlugin.bindTextures.

    interface PluginSamplerDecl {
        depthTexture?: boolean;
        sampler: string;
        samplerType?: "sampler" | "sampler_non_filtering";
        texture: string;
        textureType?: "texture_2d<f32>";
        visibility?: "vertex" | "fragment" | "vertex-fragment";
    }
    Index
    depthTexture?: boolean

    Declare a depth texture when using enablePbrMaterialPluginVertexData.

    sampler: string
    samplerType?: "sampler" | "sampler_non_filtering"

    Defaults to "sampler".

    texture: string
    textureType?: "texture_2d<f32>"
    Defaults to "texture_2d".
    visibility?: "vertex" | "fragment" | "vertex-fragment"

    Shader stages that read this pair. Defaults to "fragment".