API

Interface Sprite2DCustomShaderOptions

interface Sprite2DCustomShaderOptions {
    extraTextures?: readonly CustomShaderTexture[];
    fragment: string;
}
Index
extraTextures?: readonly CustomShaderTexture[]

Extra textures, in binding order. Each contributes a texture_2d + sampler.

fragment: string

WGSL fragment body. See the module docs for the in-scope identifiers.