提交 5f0b6876 编写于 作者: M Mr.doob

Optimised Minecraft AO demo (removing more unseen sides).

Made 0xffffff the default color on all materials (0xeeeeee was making the AO a bit darker).
上级 8e53294e
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -11,7 +11,7 @@
THREE.LineBasicMaterial = function ( parameters ) {
this.color = new THREE.Color( 0xff0000 );
this.color = new THREE.Color( 0xffffff );
this.opacity = 1;
this.blending = THREE.NormalBlending;
this.linewidth = 1;
......
......@@ -23,7 +23,7 @@ THREE.MeshBasicMaterial = function ( parameters ) {
this.id = THREE.MeshBasicMaterialCounter.value ++;
this.color = new THREE.Color( 0xeeeeee );
this.color = new THREE.Color( 0xffffff );
this.map = null;
this.env_map = null;
......
......@@ -5,20 +5,20 @@
* env_map: new THREE.TextureCube( [posx, negx, posy, negy, posz, negz] ),
* }
*/
THREE.MeshCubeMaterial = function ( parameters ) {
this.id = THREE.MeshCubeMaterial.value ++;
this.id = THREE.MeshCubeMaterial.value ++;
this.env_map = null;
this.blending = THREE.NormalBlending;
this.blending = THREE.NormalBlending;
if ( parameters ) {
if ( parameters.env_map !== undefined ) this.env_map = parameters.env_map;
}
this.toString = function () {
return 'THREE.MeshCubeMaterial( ' +
......@@ -26,8 +26,7 @@ THREE.MeshCubeMaterial = function ( parameters ) {
'env_map: ' + this.env_map + ' )';
};
}
THREE.MeshCubeMaterialCounter = { value: 0 };
......@@ -23,7 +23,7 @@ THREE.MeshLambertMaterial = function ( parameters ) {
this.id = THREE.MeshLambertMaterialCounter.value ++;
this.color = new THREE.Color( 0xeeeeee );
this.color = new THREE.Color( 0xffffff );
this.map = null;
this.env_map = null;
......
......@@ -28,7 +28,7 @@ THREE.MeshPhongMaterial = function ( parameters ) {
this.id = THREE.MeshPhongMaterialCounter.value ++;
this.color = new THREE.Color( 0xeeeeee );
this.color = new THREE.Color( 0xffffff );
this.ambient = new THREE.Color( 0x050505 );
this.specular = new THREE.Color( 0x111111 );
this.shininess = 30;
......
......@@ -11,7 +11,7 @@
THREE.ParticleBasicMaterial = function ( parameters ) {
this.color = new THREE.Color( 0xff0000 );
this.color = new THREE.Color( 0xffffff );
this.map = null;
this.opacity = 1;
this.blending = THREE.NormalBlending;
......
......@@ -10,7 +10,7 @@
THREE.ParticleCircleMaterial = function ( parameters ) {
this.color = new THREE.Color( 0xff0000 );
this.color = new THREE.Color( 0xffffff );
this.opacity = 1;
this.blending = THREE.NormalBlending;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册