Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/renderers/WebGLRenderer.d.ts>WebGLRenderer#setAnimationLoop

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method WebGLRenderer.prototype.setAnimationLoop
import { WebGLRenderer } from "https://deno.land/x/threejs_4_deno@v121/src/renderers/WebGLRenderer.d.ts";

A build in function that can be used instead of requestAnimationFrame. For WebXR projects this function must be used.

Parameters

callback: XRAnimationLoopCallback | null

The function will be called every available frame. If null is passed it will stop any already ongoing animation.