Skip to content

Commit a31517a

Browse files
authored
Examples: Update webgpu_lines_fat_raycasting (#32060)
* Update webgpu_lines_fat_raycasting.html * Update webgpu_lines_fat_raycasting.jpg
1 parent 29dbaed commit a31517a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
5.02 KB
Loading

examples/webgpu_lines_fat_raycasting.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989

9090
const params = {
9191

92-
'line type': 0,
92+
'line type': 1,
9393
'world units': matLine.worldUnits,
9494
'visualize threshold': matThresholdLine.visible,
9595
'width': matLine.linewidth,
@@ -177,13 +177,11 @@
177177
segments.computeLineDistances();
178178
segments.scale.set( 1, 1, 1 );
179179
scene.add( segments );
180-
segments.visible = false;
181180

182181
thresholdSegments = new LineSegments2( segmentsGeometry, matThresholdLine );
183182
thresholdSegments.computeLineDistances();
184183
thresholdSegments.scale.set( 1, 1, 1 );
185184
scene.add( thresholdSegments );
186-
thresholdSegments.visible = false;
187185

188186
line = new Line2( lineGeometry, matLine );
189187
line.computeLineDistances();
@@ -201,6 +199,10 @@
201199

202200
//
203201

202+
switchLine( params[ 'line type' ] );
203+
204+
//
205+
204206
document.addEventListener( 'pointermove', onPointerMove );
205207
window.addEventListener( 'resize', onWindowResize );
206208
onWindowResize();
@@ -313,7 +315,7 @@
313315

314316
switchLine( val );
315317

316-
} ).setValue( 1 );
318+
} );
317319

318320
gui.add( params, 'world units' ).onChange( function ( val ) {
319321

0 commit comments

Comments
 (0)