// Create a new Three.js scene
scene = new THREE.Scene();
// Add a camera so we can view the scene
camera = new THREE.PerspectiveCamera( 45, canvas.width / canvas.height, 1, 4000 );
camera.position.z = 10;
scene.add(camera);
// Create a group to hold all the objects
cubeGroup = new THREE.Object3D;
// Add a directional light to show off the objects
var light = new THREE.DirectionalLight( 0xffffff, 1.5);
// Position the light out from the scene, pointing at the origin
light.position.set(.5, .2, 1);
cubeGroup.add(light);
Currently there is no built-in solution in pex.
Scene graph
Like THREE.js
Matrix stack
Like foam-gl