CubeTexture

BaseTexture

Description

class CubeTexture extends BaseTexture

Constructor

new CubeTexture(rootUrl, scene, extensions, noMipmap, files, onLoad, onError, format, prefiltered, forcedExtension)

Parameters

Name Type Description
rootUrl string
scene Scene
optional extensions Nullable<string[]>
optional noMipmap boolean
optional files Nullable<string[]>
optional onLoad Nullable<() => void>
optional onError Nullable<(message: string, exception: any) => void>
optional format number
optional prefiltered boolean

Members

url : string

coordinatesMode : number

Methods

static CreateFromImages(files, scene, noMipmap) CubeTexture

Parameters

Name Type Description
files string[]
scene Scene
optional noMipmap boolean

static CreateFromPrefilteredData(url, scene, forcedExtension) CubeTexture

Parameters

Name Type Description
url string
scene Scene
optional forcedExtension any

delayLoad() void

getReflectionTextureMatrix() Matrix

setReflectionTextureMatrix(value) void

Parameters

Name Type Description
value Matrix

static Parse(parsedTexture, scene, rootUrl) CubeTexture

Parameters

Name Type Description
parsedTexture any
scene Scene
rootUrl string

clone() CubeTexture