Abstract
Static
Readonly
componentsStatic
Readonly
lightsStatic
Readonly
nodesStatic
pickStatic
rectStatic
texStatic
texStatic
texStatic
texSee 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 | AddEventListenerOptionsStatic
addStatic
addStatic
adjustStatic
assertStatic
bindStatic
clearStatic
createStatic
dispatchStatic
drawDraws the scene from the point of view of the given camera
Static
drawDraw a mesh buffer using the given infos and the complete projection matrix
Static
getReturn a reference to the offscreen-canvas.
Static
getReturns 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.
Static
getRetrieve the area on the offscreen-canvas the camera image gets rendered to.
Do not modify the rectangle directly, use setRenderRectangle instead.
Static
getStatic
initializeStatic
initializeStatic
pickStatic
pointRead the (world) position from the pixel at the given point on the render-rectangle (origin top left). ⚠️ CAUTION: Currently only works when ambient occlusion is active due to writing to the position texture being disabled otherwise.
Static
prepareRecursively 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
Static
removeStatic
resetStatic
setSet the blend mode to render with
Static
setSet the size of the offscreen-canvas.
⚠️ CAUTION: If size changes invokes adjustAttachments which is an expensive operation.
Static
setStatic
setSet the comparison operation used to test fragment depths against current depth buffer values.
Static
setStatic
setStatic
setSet the area on the offscreen-canvas to render the camera image to.
Static
setStatic
setStatic
useOptional
_id: number
The main interface to the render engine, here WebGL (see superclass RenderWebGL and the RenderInjectors