AbstractStatictexStatictexStatictexStatictexSee EventTarget.addEventListener for reference. Works with EventListenerUnified and EventUnified
Optional_options: boolean | AddEventListenerOptionsSee EventTarget.dispatchEvent for reference. Works with with EventUnified
See EventTarget.removeEventListener for reference. Works with EventListenerUnified and EventUnified
Optional_options: boolean | AddEventListenerOptionsStaticaddStaticadjustAdjusts the size of the different texture attachments (render targets) to the canvas size.
⚠️ CAUTION: Expensive operation, use only when canvas size changed.
StaticassertStaticbindStaticclearStaticcreateStaticdispatchDispatch an event on targetStatic.
StaticdrawDraw a mesh buffer using the given infos and the complete projection matrix
StaticgetReturn a reference to the offscreen-canvas.
StaticgetReturns a reference to the rectangle describing the size of the offscreen-canvas. x,y are 0 at all times.
Do not modify the rectangle directly, use setCanvasSize instead.
StaticgetReturn a reference to the rendering context
StaticgetRetrieve the area on the offscreen-canvas the camera image gets rendered to.
Do not modify the rectangle directly, use setRenderRectangle instead.
StaticinitializeInitializes offscreen-canvas, renderingcontext and hardware viewport. Call once before creating any resources like meshes or shaders
Optional_antialias: booleanOptional_alpha: booleanStaticinitializeInitializes different framebuffers aswell as texture attachments to use as render targets
StaticpickUsed with a Picker-camera, this method renders one pixel with picking information for each node in the line of sight and return that as an unsorted Pick-array
StaticpointStaticremoveStaticresetReset the framebuffer to the main color buffer.
StaticsetStaticsetSet the size of the offscreen-canvas.
⚠️ CAUTION: If size changes invokes adjustAttachments which is an expensive operation.
StaticsetSet which color components to enable or to disable when rendering to a color buffer.
StaticsetSet the comparison operation used to test fragment depths against current depth buffer values.
StaticsetEnable / Disable WebGLs depth test.
StaticsetSet the final framebuffer to render to. If null, the canvas default framebuffer is used. Used by XR to render to the XRWebGLLayer framebuffer.
StaticsetSet the area on the offscreen-canvas to render the camera image to.
StaticsetEnable / Disable WebGLs scissor test.
Optional_x: numberOptional_y: numberOptional_width: numberOptional_height: numberStaticsetSet WebGLs viewport.
StaticuseOptional_id: number
Base class for RenderManager, handling the connection to the rendering system, in this case WebGL. Methods and attributes of this class should not be called directly, only through Render