-
Notifications
You must be signed in to change notification settings - Fork 26
SkyBox
Alessandro Febretti edited this page Feb 8, 2014
·
4 revisions
Defines a sky box for the scene, using a cube map texture.
Method(s) | Description |
---|---|
loadCubeMap(string path, string extension) |
loads a cube map using a set of six textures contained in the specified path. |
# Load a cube map and attach it to the scene
# the textures in common/cubemaps/grid4 must be named
# posx.png, posy.png, negx.png, negy.png, posz.png, negz.png
skybox = Skybox()
skybox.loadCubeMap("common/cubemaps/grid4", "png")
getSceneManager().setSkyBox(skybox)