Atlas Engine
API Referenceatlasatlas/graphics

RenderTarget

Offscreen rendering destination with output textures, render passes, and post-processing effects.

Module: atlas/graphics

Offscreen rendering destination with output textures, render passes, and post-processing effects.

Declaration

export class RenderTarget { ... }

Constructors

Creates a new render target.

constructor(type: RenderTargetType, resolution: number);

Properties

type

The category or discriminator for this value.

type: RenderTargetType;

resolution

The resolution.

resolution: number;

outTextures

The collection of out textures.

outTextures: Texture[];

depthTexture

The depth texture, or null when unavailable.

depthTexture: Texture | null;

Methods

addEffect

Adds a post-processing effect by name or configured descriptor.

addEffect(effect: Effect): void;

addToPassQueue

Enqueues the selected rendering pass for this target.

addToPassQueue(type: RenderPassType): void;

display

Display.

display(): void;

On this page