Class

Skybox

Skybox()

A Skybox

Constructor

new Skybox()

Constructor

View Source Objects/Skybox.js, line 10

Extends

Methods

draw(renderTarget)

Draw the element
Parameters:
Name Type Description
renderTarget RenderTarget Renderer who called this method
Overrides:

View Source Objects/Skybox.js, line 39

getCustomProgram() → (nullable) {Program}

Get program

View Source Objects/Skybox.js, line 74

A Program instance or null if the Skybox use the default program
Program

getTexture() → {TextureCube}

Get the linked TextureCube instance

View Source Objects/Skybox.js, line 83

A TextureCube instances
TextureCube

setCustomProgram(program) → {Skybox}

Set program to use
Parameters:
Name Type Description
program Program A Program instance

View Source Objects/Skybox.js, line 51

A reference to the instance
Skybox

setTexture(texture) → {Skybox}

Set texture
Parameters:
Name Type Description
texture TextureCube A TextureCube instance

View Source Objects/Skybox.js, line 63

A reference to the instance
Skybox

visit(renderTarget) → {boolean}

Visit the node and his children
Parameters:
Name Type Description
renderTarget RenderTarget Renderer who called this method
Inherited From:

View Source Objects/Drawable.js, line 23

True if visit was successful, otherwise false
boolean