Skip to content

Commit

Permalink
Manual: Fix GPU picking demo. (#27866)
Browse files Browse the repository at this point in the history
* Manual: Fix GPU picking demo.

* Update picking-gpu.html
  • Loading branch information
Mugen87 committed Mar 4, 2024
1 parent 1f5454f commit b09f60e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manual/en/picking.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ <h1>Picking</h1>
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,
Expand Down
2 changes: 1 addition & 1 deletion manual/examples/picking-gpu.html
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion manual/ja/picking.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ <h1>でピッキング</h1>
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,
Expand Down
2 changes: 1 addition & 1 deletion manual/ko/picking.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ <h1>피킹(Picking)</h1>
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,
Expand Down
2 changes: 1 addition & 1 deletion manual/zh/picking.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h1>拾取</h1>
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,
Expand Down

0 comments on commit b09f60e

Please sign in to comment.