Create a new WebGL renderer.
Optional
parameters: WebGLRendererParametersProtected
_cameraProtected
_rendererProtected
_sceneA Canvas where the renderer draws its output. This is automatically created by the renderer in the constructor (if not provided already); you just need to add it to your page.
If true, the renderer will not render any new frames.
Protected
_checkCheck if the provided arguments are valid. Assume that they are not!
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Render a single frame.
Use this inside the requestAnimationFrame
.
Set the camera to be used by this renderer.
New camera to be used.
Resizes the output canvas to (width, height), and also sets the viewport to fit that size, starting in (0, 0).
Optional
updateStyle: booleanE2E test method.
This method should return true
if the test passes, and false
if it fails.
Check the method itself for more information.
The WebGL renderer displays your beautifully crafted scenes using WebGL.