RawTexture

BaseTextureTexture

Description

class RawTexture extends Texture

Constructor

new RawTexture(data, width, height, format, scene, generateMipMaps, invertY, samplingMode, type)

Parameters

Name Type Description
data ArrayBufferView
width number
height number
format number
scene Scene
optional generateMipMaps boolean
optional invertY boolean
optional samplingMode number

Members

format : number

Methods

update(data) void

Parameters

Name Type Description
data ArrayBufferView

static CreateLuminanceTexture(data, width, height, scene, generateMipMaps, invertY, samplingMode) RawTexture

Parameters

Name Type Description
data ArrayBufferView
width number
height number
scene Scene
optional generateMipMaps boolean
optional invertY boolean

static CreateLuminanceAlphaTexture(data, width, height, scene, generateMipMaps, invertY, samplingMode) RawTexture

Parameters

Name Type Description
data ArrayBufferView
width number
height number
scene Scene
optional generateMipMaps boolean
optional invertY boolean

static CreateAlphaTexture(data, width, height, scene, generateMipMaps, invertY, samplingMode) RawTexture

Parameters

Name Type Description
data ArrayBufferView
width number
height number
scene Scene
optional generateMipMaps boolean
optional invertY boolean

static CreateRGBTexture(data, width, height, scene, generateMipMaps, invertY, samplingMode, type) RawTexture

Parameters

Name Type Description
data ArrayBufferView
width number
height number
scene Scene
optional generateMipMaps boolean
optional invertY boolean
optional samplingMode number

static CreateRGBATexture(data, width, height, scene, generateMipMaps, invertY, samplingMode, type) RawTexture

Parameters

Name Type Description
data ArrayBufferView
width number
height number
scene Scene
optional generateMipMaps boolean
optional invertY boolean
optional samplingMode number