Skip to content

Commit 37abf5d

Browse files
committed
Update webgpu_tsl_wood.html
1 parent 640fca8 commit 37abf5d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

examples/webgpu_tsl_wood.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,27 +159,29 @@
159159
scene.environment = texture;
160160
scene.environmentIntensity = 2;
161161

162-
} );
162+
for ( let x = 0; x < WoodGenuses.length; x ++ ) {
163163

164-
for ( let x = 0; x < WoodGenuses.length; x ++ ) {
164+
for ( let y = 0; y < Finishes.length; y ++ ) {
165165

166-
for ( let y = 0; y < Finishes.length; y ++ ) {
166+
const cube = add_wood( x, y, text_mat );
167+
base.add( cube );
168+
169+
await new Promise( resolve => setTimeout( resolve, 0 ) );
170+
171+
}
172+
173+
}
174+
175+
} );
167176

168-
const cube = add_wood( x, y, text_mat );
169-
base.add( cube );
170-
await new Promise( resolve => setTimeout( resolve, 0 ) );
171-
172-
}
173-
174-
}
175-
176177
}
177178

178179
function render() {
179180

180181
controls.update();
181182
stats.update();
182-
return renderer.renderAsync( scene, camera );
183+
184+
renderer.render( scene, camera );
183185

184186
}
185187

0 commit comments

Comments
 (0)