Interface SceneTextureParams

SceneTexture creation parameters for SceneModel.createTexture.

interface SceneTextureParams {
    buffers?: ArrayBuffer[];
    encoding?: number;
    flipY?: boolean;
    id: string;
    image?: HTMLImageElement;
    imageData?: any;
    magFilter?: number;
    mediaType?: any;
    minFilter?: number;
    preloadColor?: FloatArrayParam;
    src?: string;
    wrapR?: number;
    wrapS?: number;
    wrapT?: number;
}

Properties

buffers?: ArrayBuffer[]

Transcoded texture data.

encoding?: number

SceneTexture encoding format.

Supported values are constants!LinearEncoding and constants!sRGBEncoding.

flipY?: boolean

Flips this SceneTexture's source data along its vertical axis when true.

id: string

ID for the texture.

image?: HTMLImageElement

HTMLImage containing the texture image.

imageData?: any

Image file data.

magFilter?: number

How the texture is sampled when a texel covers more than one pixel.

Supported values are constants!LinearFilter and constants!NearestFilter.

mediaType?: any

Media type.

minFilter?: number
preloadColor?: FloatArrayParam

RGBA color to preload the texture with.

src?: string

Path to an image file.

wrapR?: number

Wrap parameter for texture coordinate R.

Supported values are constants!ClampToEdgeWrapping, constants!MirroredRepeatWrapping and constants!RepeatWrapping.

wrapS?: number

Wrap parameter for texture coordinate S.

Supported values are constants!ClampToEdgeWrapping, constants!MirroredRepeatWrapping and constants!RepeatWrapping.

wrapT?: number

Wrap parameter for texture coordinate T.

Supported values are constants!ClampToEdgeWrapping, constants!MirroredRepeatWrapping and constants!RepeatWrapping.