Optionaloptions: EngineOptionsThe options.
ReadonlylabelReadonlyrendererGets the viewport size, in pixels.
Optionaltarget: Vector2The viewport size, in pixels.
Renders the scene.
The scene to render.
The camera.
Renders the scene into a readable buffer.
Options.
The buffer. The first pixel in the buffer is the bottom-left pixel.
Use a custom pipeline when post-processing is required.
The scene to render.
The camera.
StaticbufferConverts the pixel buffer into an image element.
The 8-bit RGBA buffer.
The width of the buffer, in pixels.
The height of the buffer, in pixels.
The image.
The parent div that will contain the canvas.