Skip to content

Commit 869d592

Browse files
mrdoobclaude
andcommitted
Examples: Add wireframe toggle to sculpt example.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 50117f2 commit 869d592

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/webgl_sculpt.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
<input type="checkbox" id="negative">
7979
<label for="negative">Negative</label>
8080
</div>
81+
<div class="checkbox-row">
82+
<input type="checkbox" id="wireframe">
83+
<label for="wireframe">Wireframe</label>
84+
</div>
8185
</div>
8286

8387
<div class="cursor-circle" id="cursorCircle"></div>
@@ -192,6 +196,9 @@
192196
const negativeCheckbox = document.getElementById( 'negative' );
193197
negativeCheckbox.addEventListener( 'change', function () { sculpt.negative = this.checked; } );
194198

199+
const wireframeCheckbox = document.getElementById( 'wireframe' );
200+
wireframeCheckbox.addEventListener( 'change', function () { mesh.material.wireframe = this.checked; } );
201+
195202
// Cursor circle
196203

197204
const cursorCircle = document.getElementById( 'cursorCircle' );

0 commit comments

Comments
 (0)