Interface ITexture

interface ITexture {
    _appliedMaterials?: Set<IMaterial>;
    _target?: IRenderTarget;
    assetType?: "texture";
    is3DDataTexture?: boolean;
    isCanvasTexture?: boolean;
    isCompressedTexture?: boolean;
    isCubeTexture?: boolean;
    isDataTexture?: boolean;
    isTexture: true;
    isVideoTexture?: boolean;
    source: Source & { _sourceImgBuffer?: ArrayBuffer | Uint8Array };
    userData: ITextureUserData;
    setDirty(): void;
}

Hierarchy

Properties

_appliedMaterials?: Set<IMaterial>
_target?: IRenderTarget
assetType?: "texture"
is3DDataTexture?: boolean
isCanvasTexture?: boolean
isCompressedTexture?: boolean
isCubeTexture?: boolean
isDataTexture?: boolean
isTexture: true

Read-only flag to check if a given object is of type Texture.

This is a constant value

true

isVideoTexture?: boolean
source: Source & { _sourceImgBuffer?: ArrayBuffer | Uint8Array }

The data definition of a texture. A reference to the data source can be shared across textures. This is often useful in context of spritesheets where multiple textures render the same data but with different Texture transformations.

An object that can be used to store custom data about the texture.

It should not hold references to functions as these will not be cloned.

{}

Methods