There was an error while loading. Please reload this page.
1 parent 50117f2 commit 869d592Copy full SHA for 869d592
1 file changed
examples/webgl_sculpt.html
@@ -78,6 +78,10 @@
78
<input type="checkbox" id="negative">
79
<label for="negative">Negative</label>
80
</div>
81
+ <div class="checkbox-row">
82
+ <input type="checkbox" id="wireframe">
83
+ <label for="wireframe">Wireframe</label>
84
+ </div>
85
86
87
<div class="cursor-circle" id="cursorCircle"></div>
@@ -192,6 +196,9 @@
192
196
const negativeCheckbox = document.getElementById( 'negative' );
193
197
negativeCheckbox.addEventListener( 'change', function () { sculpt.negative = this.checked; } );
194
198
199
+ const wireframeCheckbox = document.getElementById( 'wireframe' );
200
+ wireframeCheckbox.addEventListener( 'change', function () { mesh.material.wireframe = this.checked; } );
201
+
195
202
// Cursor circle
203
204
const cursorCircle = document.getElementById( 'cursorCircle' );
0 commit comments