AbstractStatic ReadonlycomponentsStatic ReadonlylightsStatic ReadonlynodesStaticpickStaticrectStatictexStatictexStatictexStatictexSee 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 | AddEventListenerOptionsStaticaddStaticaddStaticadjustAdjusts 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.
StaticdrawDraws the scene from the point of view of the given camera
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
StaticpointStaticprepareRecursively iterates over the branch starting with the node given, recalculates all world transforms, collects all lights and feeds the renderbuffers with the neccessary node and component data to draw a frame. Sorts nodes for different render passes.
set true to force recalculation of all world transforms in the given branch, even if their local transforms haven't changed
StaticremoveStaticresetReset 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
The main interface to the render engine, here WebGL (see superclass RenderWebGL and the RenderInjectors