@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.
44 lines (43 loc) • 1.87 kB
TypeScript
import type { Camera } from "../Cameras/camera.js";
import { PostProcess } from "./postProcess.js";
import type { Nullable } from "../types.js";
import type { AbstractEngine } from "../Engines/abstractEngine.js";
/** Defines operator used for tonemapping */
export declare enum TonemappingOperator {
/** Hable */
Hable = 0,
/** Reinhard */
Reinhard = 1,
/** HejiDawson */
HejiDawson = 2,
/** Photographic */
Photographic = 3
}
/**
* Defines a post process to apply tone mapping
*/
export declare class TonemapPostProcess extends PostProcess {
private _operator;
/** Defines the required exposure adjustment */
exposureAdjustment: number;
/**
* Gets a string identifying the name of the class
* @returns "TonemapPostProcess" string
*/
getClassName(): string;
/**
* Creates a new TonemapPostProcess
* @param name defines the name of the postprocess
* @param _operator defines the operator to use
* @param exposureAdjustment defines the required exposure adjustment
* @param camera defines the camera to use (can be null)
* @param samplingMode defines the required sampling mode (BABYLON.Texture.BILINEAR_SAMPLINGMODE by default)
* @param engine defines the hosting engine (can be ignore if camera is set)
* @param textureFormat defines the texture format to use (BABYLON.Engine.TEXTURETYPE_UNSIGNED_BYTE by default)
* @param reusable If the post process can be reused on the same frame. (default: false)
*/
constructor(name: string, _operator: TonemappingOperator,
/** Defines the required exposure adjustment */
exposureAdjustment: number, camera: Nullable<Camera>, samplingMode?: number, engine?: AbstractEngine, textureFormat?: number, reusable?: boolean);
protected _gatherImports(useWebGPU: boolean, list: Promise<any>[]): void;
}