gpu-curtains
    Preparing search index...

    Interface MediaTextureBaseParams

    Define the base parameters used to create a MediaTexture.

    interface MediaTextureBaseParams {
        placeholderColor?: [number, number, number, number];
        useExternalTextures?: boolean;
        cache?: boolean;
        useTransform?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    placeholderColor?: [number, number, number, number]

    Solid color used by temporary texture to display while loading the source, as an array of RGBA integer values in the [0, 255] range. Default to [0, 0, 0, 255] (solid black).

    useExternalTextures?: boolean

    Whether video textures should use GPUExternalTexture or not. Default to true.

    cache?: boolean

    Whether to keep the texture in the renderer cache when a Material tries to destroy it. Default to true.

    useTransform?: boolean

    Whether to use a transformation Mat3 to use in the shaders for UV transformations. If set to true, will create a BufferBinding accessible in the shaders with the name ${texture.options.name}Matrix.