CLASSES
TagsA - Z

CubeTexture

BaseTexture

Description

class CubeTexture extends BaseTexture

Constructor

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

Parameters

Name Type Description
rootUrl string Link of the texture
scene Scene Scene which contain the texture
optional extensions string[] The cube texture extensions. The defaults extensions are : [_px.jpg, _py.jpg, _pz.jpg, _nx.jpg, _ny.jpg, _nz.jpg]
optional noMipmap boolean
optional files string[]
optional onLoad () => void

Members

url : string

The texture URL

coordinatesMode : number

The coordinates mode

Methods

static CreateFromImages(files, scene, noMipmap) CubeTexture

Parameters

Name Type Description
files string[]
scene Scene Scene which contain the texture
optional noMipmap boolean

delayLoad() void

Delay the texture loading

getReflectionTextureMatrix() Matrix

static Parse(parsedTexture, scene, rootUrl) CubeTexture

Parameters

Name Type Description
parsedTexture any
scene Scene Scene which contain the texture
rootUrl string Link of the texture

clone() CubeTexture

Clone the cube texture @return CubeTexture A clone of the cube texture