@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
40 lines (39 loc) • 1 kB
TypeScript
import type { Color4 } from "../Maths/math.color.js";
import type { PostProcess } from "../PostProcesses/postProcess.js";
/**
* Interface for defining prepass effects in the prepass post-process pipeline
*/
export interface PrePassEffectConfiguration {
/**
* Name of the effect
*/
name: string;
/**
* Post process to attach for this effect
*/
postProcess?: PostProcess;
/**
* Textures required in the MRT
*/
texturesRequired: number[];
/**
* Is the effect enabled
*/
enabled: boolean;
/**
* Does the output of this prepass need to go through imageprocessing
*/
needsImageProcessing?: boolean;
/**
* The clear color of the render targets. If not provided, defaults to (0, 0, 0, 0)
*/
clearColor?: Color4;
/**
* Disposes the effect configuration
*/
dispose?: () => void;
/**
* Creates the associated post process
*/
createPostProcess?: () => PostProcess;
}