Skip to content

Commit

Permalink
Examples: Improved webxr_xr_haptics.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 13, 2023
1 parent 724b00b commit e0a631f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified examples/screenshots/webxr_xr_haptics.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions examples/webxr_xr_haptics.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@

const intensity = ( i + 1 ) / BOXES;
const w = 0.1;
const h = 0.1;
const minH = 1;
const geometry = new THREE.BoxGeometry( w, h * i + minH, w );
const h = 0.05 * i + 0.5;
const geometry = new THREE.BoxGeometry( w, h, w );
geometry.translate( 0, h / 2, 0 );
const material = new THREE.MeshStandardMaterial( {
color: new THREE.Color( intensity, 0.1, 0.1 ),
roughness: 0.7,
Expand Down

0 comments on commit e0a631f

Please sign in to comment.