CLASSES
TagsA - Z

ProceduralTexture

BaseTextureTextureProceduralTexture

Description

class ProceduralTexture extends Texture

Constructor

new ProceduralTexture(name, size, fragment, scene, fallbackTexture, generateMipMaps, isCube)

Parameters

Name Type Description
name string
size any
fragment any
scene Scene
optional fallbackTexture Texture
optional generateMipMaps boolean

Members

isCube : boolean

isEnabled : boolean

onGenerated : () => void

refreshRate : number

Methods

reset() → void

isReady() → boolean

resetRefreshCounter() → void

setFragment(fragment) → void

Parameters

Name Type Description
fragment any

getRenderSize() → number

resize(size, generateMipMaps) → void

Parameters

Name Type Description
size any
generateMipMaps any

setTexture(name, texture) → ProceduralTexture

Parameters

Name Type Description
name string
texture Texture

setFloat(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value number

setFloats(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value number[]

setColor3(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value Color3

setColor4(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value Color4

setVector2(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value Vector2

setVector3(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value Vector3

setMatrix(name, value) → ProceduralTexture

Parameters

Name Type Description
name string
value Matrix

render(useCameraPostProcess) → void

Parameters

Name Type Description
optional useCameraPostProcess boolean

clone() → ProceduralTexture

dispose() → void