elation-engine
Version:
WebGL/WebVR engine written in Javascript
15 lines (14 loc) • 443 B
JavaScript
elation.require(['engine.things.generic'], function() {
elation.component.add('engine.things.skybox', function() {
this.postinit = function() {
}
this.createObject3D = function() {
var obj = new THREE.Object3D();
return obj;
}
this.setTexture = function(texture) {
var scene = this.engine.systems.world.scene['world-3d'];
scene.background = texture;
}
}, elation.engine.things.generic);
});