Class
RenderLists3D
View sourceExtendsRenderLists
Camera render-list component for opaque 3D passes.
Place this component on a camera entity with Camera and
GlobalTransform3D. It specializes RenderLists for 3D
entries; RenderLists2D is the corresponding 2D component.
Use the inherited RenderLists#getOpaquePass,
RenderLists#setOpaquePass, and RenderLists#clear APIs to
manage its material-keyed passes.
Examples
import { createCamera3D } from '@wimaengine/render-core'
// The prefab includes GlobalTransform3D, Camera, and RenderLists3D.
const cameraEntity = world.spawn(createCamera3D())Constructor
Methods
staticdefault(): RenderLists3D
View sourcestaticcopy(_source: RenderLists3D, target?: RenderLists3D): RenderLists3D
View sourceReturns the copy target without copying any render passes.
The source is ignored. Without a target, this method creates and returns
an empty RenderLists3D; with a target, it returns that exact object
unchanged, including any passes it already contains.
staticclone(target: RenderLists3D): RenderLists3D
View sourceReturns a new empty render list instead of cloning render passes.
The input is ignored. This method delegates to
RenderLists3D.copy without a copy target, so it always
returns a new RenderLists3D whose inherited opaque-pass map is
empty.
staticserialize(_value: RenderLists3D): object
View sourceReturns the empty serialized representation for a 3D render list.
The value is ignored and the inherited opaque passes are not serialized; each call returns a new empty object.
staticdeserialize(_value: unknown, out?: RenderLists3D): RenderLists3D
View sourceReturns an output render list without reading serialized data.
The serialized input is ignored. Without out, this method creates and
returns a new empty RenderLists3D; with out, it returns that
exact object unchanged, so no opaque passes are restored or replaced.
