Type Alias PostProcessOptions
camera?: Nullable<Camera>;
effectWrapper?: EffectWrapper;
engine?: AbstractEngine;
height?: number;
reusable?: boolean;
samplingMode?: number;
size?: number | { height: number; width: number };
textureFormat?: number;
textureType?: number;
width?: number;
}
Type Declaration
-
Optionalcamera?: Nullable<Camera>The camera that the post process will be attached to (default: null)
-
OptionaleffectWrapper?: EffectWrapperThe effect wrapper instance used by the post process. If not provided, a new one will be created.
-
Optionalengine?: AbstractEngineThe engine to be used to render the post process (default: engine from scene)
-
Optionalheight?: numberThe height of the texture created for this post process. This parameter (and width) is only used when passing a value for the 5th parameter (options) to the PostProcess constructor function. If you use a PostProcessOptions for the 3rd parameter of the constructor, size is used instead of width and height.
-
Optionalreusable?: booleanIf the post process can be reused on the same frame. (default: false)
-
OptionalsamplingMode?: numberThe sampling mode to be used by the shader (default: Constants.TEXTURE_NEAREST_SAMPLINGMODE)
-
Optionalsize?: number | { height: number; width: number }The size of the post process texture. It is either a ratio to downscale or upscale the texture create for this post process, or an object containing width and height values. Default: 1
-
OptionaltextureFormat?: numberFormat of the texture created for this post process (default: TEXTUREFORMAT_RGBA)
-
OptionaltextureType?: numberType of the texture created for this post process (default: Constants.TEXTURETYPE_UNSIGNED_BYTE)
-
Optionalwidth?: numberThe width of the texture created for this post process. This parameter (and height) is only used when passing a value for the 5th parameter (options) to the PostProcess constructor function. If you use a PostProcessOptions for the 3rd parameter of the constructor, size is used instead of width and height.
Options for the PostProcess constructor