Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 4 revisions

module cyclops wraps cyclops::Skybox

Defines a sky box for the scene, using a cube map texture.

Methods

Method(s) Description
loadCubeMap(string path, string extension) loads a cube map using a set of six textures contained in the specified path.

Examples

Basic example

	# 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)
Clone this wiki locally