Class: Cubemap

SQR.Cubemap(faces, params)

new Cubemap(faces, params)

Parameters:
Name Type Description
faces Object

6 paths to the textures for each face.

Properties
Name Type Description
up string

the path to the image for the face up

down string

the path to the image for the face down

left string

the path to the image for the face left

right string

the path to the image for the face right

back string

the path to the image for the face back

front string

the path to the image for the face front

params object

parameter for the texture

Properties
Name Type Description
onLoad function

a callback to call when all the images are loaded

Source: