UNPKG

elation-engine

Version:
15 lines (14 loc) 443 B
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); });