Interface PluginSamplerDecl
interface PluginSamplerDecl {
depthTexture?: boolean;
sampler: string;
samplerType?: "sampler" | "sampler_non_filtering";
texture: string;
textureType?: "texture_2d<f32>";
visibility?: "vertex" | "fragment" | "vertex-fragment";
}
depthTexture?: boolean;
sampler: string;
samplerType?: "sampler" | "sampler_non_filtering";
texture: string;
textureType?: "texture_2d<f32>";
visibility?: "vertex" | "fragment" | "vertex-fragment";
}
Properties
Optional Readonlydepth Texture
depthTexture?: boolean
Declare a depth texture when using enablePbrMaterialPluginVertexData.
Readonlysampler
sampler: string
Optional Readonlysampler Type
samplerType?: "sampler" | "sampler_non_filtering"
Defaults to "sampler".
Readonlytexture
texture: string
Optional Readonlytexture Type
textureType?: "texture_2d<f32>"
Defaults to "texture_2d".
Optional Readonlyvisibility
visibility?: "vertex" | "fragment" | "vertex-fragment"
Shader stages that read this pair. Defaults to "fragment".
A texture + sampler pair contributed by a plugin.
texture/samplerare the WGSL variable names used by the plugin's custom code; the engine wires up the GPU bindings in declaration order from MaterialPlugin.bindTextures.