Used to manage multiple post effects for a camera.
new PostEffectQueue(app: AppBase, camera: CameraComponent): PostEffectQueue
Create a new PostEffectQueue instance.
AppBase
The application.
The camera component.
addEffect(effect: PostEffect): void
Adds a post effect to the queue. If the queue is disabled adding a post effect will automatically enable the queue.
The post effect to add to the queue.
void
destroy(): void
Removes all the effects from the queue and disables it.
void
disable(): void
Disables the queue and all of its effects.
void
enable(): void
Enables the queue and all of its effects. If there are no effects then the queue will not be enabled.
void
removeEffect(effect: PostEffect): void
Removes a post effect from the queue. If the queue becomes empty it will be disabled automatically.
The post effect to remove.
void