babylon.engine.prototype.run-default-render-loop
v1.0.1
Published
Runs the default render loop.
Downloads
5
Maintainers
Readme
BABYLON.Engine.prototype.runDefaultRenderLoop
.runDefaultRenderLoop()
Runs the default render loop. Renders all scenes and updates the size of the canvas depending on their CSS properties.
setup
npm
npm i babylon.engine.prototype.run-default-render-loop
ES module
import 'babylon.engine.prototype.run-default-render-loop';
import * as BABYLON from 'babylonjs';
Use the treeshaking system.
import 'babylon.engine.prototype.run-default-render-loop/es6'
browser
<script src="https://unpkg.com/babylonjs"></script>
<script src="https://unpkg.com/babylon.engine.prototype.run-default-render-loop"></script>
usage
let engine = new BABYLON.Engine(canvas);
engine.runDefaultRenderLoop();