MyCubeMap

MyCubeMap

Represents a cube that is only seen by the inside.

Constructor

new MyCubeMap(scene, side, texture)

Instantiates a new cube map instance.
Source:
Parameters:
Name Type Description
scene CGFscene the scene in which the cube map will be shown
side number the length of a side of the cube
texture CGFtexture the cubemap texture

Methods

display()

Displays the cube.
Source:

initAppearance()

Initializes the appearance of the cube.
Source:

initBuffers()

Initializes the cube buffers.
Source:

updateBuffers()

Re-initializes buffers.
Source: