This allows to work around ANGLE antialiasing issue appearing when compositing WebGL framebuffer with transparent background color with HTML canvas element background (while keeping antialiasing on).
WebGLRenderer constructor now takes JSON object with few optional parameters:
renderer = new THREE.WebGLRenderer { scene: scene,
antialias: true,
clearColor: 0x000000,
clearAlpha: 0 };
Here is how to change clear color in runtime:
renderer.setClearColor( 0xff0000, 1 );
For this extended Cube primitive with "sides" parameter.
You can use it to switch off cube faces like this:
var cube = new Cube( 100, 100, 100, 1, 1, materials, false, { ny: false } );
Default is all six faces on => { px: true, nx: true, py: true, ny: true, pz: true, nz: true }