From 2392a87d4210301a622999f0869e1c90ce127925 Mon Sep 17 00:00:00 2001 From: jerome choain Date: Wed, 17 May 2017 11:53:01 +0200 Subject: [PATCH] white cube board fixed emissive removed + shininess and lights properly set --- src/games/chessbase/cubic-board-view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/games/chessbase/cubic-board-view.js b/src/games/chessbase/cubic-board-view.js index 63773ec..3371bbf 100644 --- a/src/games/chessbase/cubic-board-view.js +++ b/src/games/chessbase/cubic-board-view.js @@ -542,7 +542,7 @@ canvas[channel]=canvas0; }); spec.createMaterial.call($this,spec,canvas,function(material) { - material.emissive={r:.5,g:.5,b:.5}; + material.emissive={r:0,g:0,b:0}; if($this.cbView.fences && $this.cbView.fences[fence]) material.color.set($this.cbView.fences[fence]); var mesh=new THREE.Mesh(meshGeometry,material); @@ -707,9 +707,9 @@ var texBoardDiffuse = new THREE.Texture(canvas.diffuse); texBoardDiffuse.needsUpdate = true; var matSpec={ - specular: '#111111', - emissive: '#ffffff', - shininess: 500, + specular: '#010101', + //emissive: '#ffffff', + shininess: 200, map: texBoardDiffuse, } if(canvas.bump) { @@ -859,7 +859,7 @@ } var lightPos = 14; - var lightInt = 1.2; + var lightInt = 1; View.Game.cbExtraLights = [{ color: 0xffffff,