diff --git a/manual/en/picking.html b/manual/en/picking.html index 67b15b12b4f357..e05b84bfc52a0a 100644 --- a/manual/en/picking.html +++ b/manual/en/picking.html @@ -279,7 +279,7 @@

Picking

cube.scale.set(rand(3, 6), rand(3, 6), rand(3, 6)); + const pickingMaterial = new THREE.MeshPhongMaterial({ -+ emissive: new THREE.Color(id), ++ emissive: new THREE.Color().setHex(id, THREE.NoColorSpace), + color: new THREE.Color(0, 0, 0), + specular: new THREE.Color(0, 0, 0), + map: texture, diff --git a/manual/examples/picking-gpu.html b/manual/examples/picking-gpu.html index 54ecb2b7fdf3a8..96703e78541019 100644 --- a/manual/examples/picking-gpu.html +++ b/manual/examples/picking-gpu.html @@ -113,7 +113,7 @@ cube.scale.set( rand( 3, 6 ), rand( 3, 6 ), rand( 3, 6 ) ); const pickingMaterial = new THREE.MeshPhongMaterial( { - emissive: new THREE.Color( id ), + emissive: new THREE.Color().setHex( id, THREE.NoColorSpace ), color: new THREE.Color( 0, 0, 0 ), specular: new THREE.Color( 0, 0, 0 ), map: texture, diff --git a/manual/ja/picking.html b/manual/ja/picking.html index a1b8347718e7a1..e329a1a038262b 100644 --- a/manual/ja/picking.html +++ b/manual/ja/picking.html @@ -296,7 +296,7 @@

でピッキング

cube.scale.set(rand(3, 6), rand(3, 6), rand(3, 6)); + const pickingMaterial = new THREE.MeshPhongMaterial({ -+ emissive: new THREE.Color(id), ++ emissive: new THREE.Color().setHex(id, THREE.NoColorSpace), + color: new THREE.Color(0, 0, 0), + specular: new THREE.Color(0, 0, 0), + map: texture, diff --git a/manual/ko/picking.html b/manual/ko/picking.html index 8ff1737de3c886..9560fbc6b0647f 100644 --- a/manual/ko/picking.html +++ b/manual/ko/picking.html @@ -268,7 +268,7 @@

피킹(Picking)

cube.scale.set(rand(3, 6), rand(3, 6), rand(3, 6)); + const pickingMaterial = new THREE.MeshPhongMaterial({ -+ emissive: new THREE.Color(id), ++ emissive: new THREE.Color().setHex(id, THREE.NoColorSpace), + color: new THREE.Color(0, 0, 0), + specular: new THREE.Color(0, 0, 0), + map: texture, diff --git a/manual/zh/picking.html b/manual/zh/picking.html index 0ebef61d3b70d0..0e618074dec069 100644 --- a/manual/zh/picking.html +++ b/manual/zh/picking.html @@ -262,7 +262,7 @@

拾取

cube.scale.set(rand(3, 6), rand(3, 6), rand(3, 6)); + const pickingMaterial = new THREE.MeshPhongMaterial({ -+ emissive: new THREE.Color(id), ++ emissive: new THREE.Color().setHex(id, THREE.NoColorSpace), + color: new THREE.Color(0, 0, 0), + specular: new THREE.Color(0, 0, 0), + map: texture,