The background color of the viewport
Readonly
gfxThe canvas element that the renderer draws to
Readonly
glThe WebGL2 context used by the renderer
The viewport of the renderer
Gets the normalized device coordinates from the provided mouse coordinates.
The normalized device coordinates.
The x coordinate of the mouse.
The y coordinate of the mouse.
Resizes the graphics canvas and adjusts the viewport to maintain the provided aspect ratio.
The width of the graphics canvas in pixels.
The height of the graphics canvas in pixels.
The aspect ratio of the graphics canvas.
Generated using TypeDoc
Creates a renderer object to use for drawing to a WebGL2 canvas