Commit Graph
16 Commits
Author SHA1 Message Date
alteredq 255c042b1e Added clear color parameter to WebGLRenderer constructor, also added setClearColor API call.
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 );
2010-12-25 22:32:26 +01:00
Mr.doob bf495aa486 Yet another geometry optimisation to the minecraft demo.
Added `lights_pointlight_smooth` example. To be used for tracking browser improvements affecting that technique.
2010-12-12 09:35:00 +00:00
alteredq 9e5017a2ed Another minecraft demo optimization: creating only one material per unique texture.
This also reduces number of VBOs. There aren't many of them anyways, but it's always nice to have less ;)
2010-12-10 19:08:27 +01:00
alteredq e3c9b9d045 Optimized minecraft demo: removed rest of unseen faces.
It did seem to help quite a bit ;)
2010-12-10 15:59:25 +01:00
Mr.doob 7aeaa8c663 Added translateX( amount ) and translateZ( amount ) to Camera. 2010-12-09 12:37:57 +00:00
Mr.doob 3f7ed6f939 Right ⇆ Left 2010-12-07 12:43:11 +00:00
Mr.doob 2dcbde4d69 Added webgl terrain example. 2010-12-07 09:13:32 +00:00
alteredq c8ee1c5dc2 Merge remote branch 'remotes/upstream/master' 2010-12-06 16:00:53 +01:00
alteredq 52ef987a79 Small optimization to Minecraft demo: not drawing bottom faces.
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 }
2010-12-06 15:58:55 +01:00
Mr.doob e829542744 Restored the correct illumination for the Minecraft demo. 2010-12-06 14:30:59 +00:00
alteredq a0e29d1c67 Oops, texture pack attribution got lost in merge. 2010-12-06 14:58:31 +01:00
alteredq 89cd9198dd Fixed a subtle bug in texture parameters (with missing mapping, all other parameters were shifted).
Thanks again Firefox for verbose WebGL warnings.
2010-12-06 14:51:15 +01:00
alteredq 4dfadc00d5 Merge remote branch 'remotes/upstream/master' 2010-12-06 14:21:31 +01:00
alteredq 3410028458 Made Minecraft demo working in Firefox. 2010-12-06 14:16:37 +01:00
Mr.doob 6f898f9fba Updated texture pack for Minecraft demo. 2010-12-06 13:14:22 +00:00
Mr.doob 12ce3e945b Added minecraft demo. 2010-12-06 12:21:34 +00:00