RenderLists3D

View source

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


constructor()

Methods


staticcopy(_source: RenderLists3D, target?: RenderLists3D): RenderLists3D

View source

Returns 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.

Parameters

NameDescriptionDefault
_source

Render list ignored by this no-op copy.

—
target?

Object to return; defaults to a new render list.

...

Returns

The new default target or the supplied target.

staticclone(target: RenderLists3D): RenderLists3D

View source

Returns 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.

Parameters

NameDescriptionDefault
target

Render list ignored by this no-op clone.

—

Returns

A new empty 3D render list.

staticserialize(_value: RenderLists3D): object

View source

Returns 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.

Parameters

NameDescriptionDefault
_value

Render list ignored during serialization.

—

Returns

An empty serialized representation.

staticdeserialize(_value: unknown, out?: RenderLists3D): RenderLists3D

View source

Returns 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.

Parameters

NameDescriptionDefault
_value

Serialized value ignored during deserialization.

—
out?

Existing output to return unchanged.

...

Returns

The new default output or the supplied output.