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

constructor(type: RenderTargetType, resolution: number);

Properties

type

type: RenderTargetType;

resolution

resolution: number;

outTextures

outTextures: Texture[];

depthTexture

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(): void;

On this page