|
@@ -6,11 +6,11 @@ We will build a simple scene with a cube. We will then animate the cube to rotat
|
|
|
|
|
|
<StackBlitzEmbed projectId="tresjs-basic-animations" />
|
|
<StackBlitzEmbed projectId="tresjs-basic-animations" />
|
|
|
|
|
|
-## useRendererLoop
|
|
|
|
|
|
+## useRenderLoop
|
|
|
|
|
|
-The `useRendererLoop` composable is the core of TresJS animations. It allows you to register a callback that will be called every time the renderer updates the scene with the browser's refresh rate.
|
|
|
|
|
|
+The `useRenderLoop` composable is the core of TresJS animations. It allows you to register a callback that will be called every time the renderer updates the scene with the browser's refresh rate.
|
|
|
|
|
|
-To see a detailed explanation of how it works, please refer to the [useRendererLoop](/composables/use-renderer-loop) documentation.
|
|
|
|
|
|
+To see a detailed explanation of how it works, please refer to the [useRenderLoop](/composables/use-render-loop) documentation.
|
|
|
|
|
|
```ts
|
|
```ts
|
|
const { onLoop, resume } = useRenderLoop()
|
|
const { onLoop, resume } = useRenderLoop()
|