Skip to main content

Interface: ViewParameters

Rendering.ViewParameters

Represents a set of parameters for configuring a view.

Implemented by​

Properties​

backgroundAlpha​

• Optional backgroundAlpha: number

Background alpha value of the view (optional, default: 1).

Defined in​

src/rendering/RenderView.ts:37


backgroundColor​

• Optional backgroundColor: ColorRepresentation

Background color of the view (optional, default: 'black').

Defined in​

src/rendering/RenderView.ts:35


camera​

• camera: Camera

Camera used to view the scene (avoid using the same camera for different scenes).

Defined in​

src/rendering/RenderView.ts:25


composer​

• Optional composer: EffectComposer

Effect composer used for post-processing (optional).

Defined in​

src/rendering/RenderView.ts:39


enabled​

• Optional enabled: boolean

Determines whether InteractionEvents will be triggered for the view (optional, default: true).

Defined in​

src/rendering/RenderView.ts:33


onAfterRender​

• Optional onAfterRender: () => void

Type declaration​

▸ (): void

Function called after rendering the view (optional).

Returns​

void

Defined in​

src/rendering/RenderView.ts:43


onBeforeRender​

• Optional onBeforeRender: () => void

Type declaration​

▸ (): void

Function called before rendering the view (optional).

Returns​

void

Defined in​

src/rendering/RenderView.ts:41


scene​

• scene: Scene

Scene rendered in the view.

Defined in​

src/rendering/RenderView.ts:23


tags​

• Optional tags: string[]

Tags of the view (optional).

Defined in​

src/rendering/RenderView.ts:29


viewport​

• Optional viewport: Viewport

Normalized viewport defining dimensions and position of the view (optional). Values range from 0 to 1.

Defined in​

src/rendering/RenderView.ts:27


visible​

• Optional visible: boolean

Determines if the view is visible (optional, default: true).

Defined in​

src/rendering/RenderView.ts:31