|
|
@@ -107,7 +107,7 @@ document.body.appendChild( renderer.domElement );
|
|
|
It's important to understand that WebGPU is initialized in an asynchronous fashion. Hence, it is recommended to use
|
|
|
`setAnimationLoop()` to define the animation loop of your app since this approach will automatically ensure the renderer
|
|
|
is initialized when rendering the first frame. If you prefer to manage your animation loop via `window.requestAnimationFrame()` or
|
|
|
- if you have to use to the renderer in your init routine, you need an additional line in the above code section.
|
|
|
+ if you have to use the renderer in your init routine, you need an additional line in the above code section.
|
|
|
</p>
|
|
|
<pre class="prettyprint showlinemods notranslate lang-js" translate="no">
|
|
|
const renderer = new THREE.WebGPURenderer( { antialias: true } );
|