Function ApplyPostProcess
-
ApplyPostProcess(
postProcessName: string,
internalTexture: InternalTexture,
scene: Scene,
type?: number,
samplingMode?: number,
format?: number,
width?: number,
height?: number,
): Promise<InternalTexture>Parameters
- postProcessName: string
name of the fragment post process
- internalTexture: InternalTexture
the texture to encode
- scene: Scene
the scene hosting the texture
Optionaltype: numbertype of the output texture. If not provided, use the one from internalTexture
OptionalsamplingMode: numbersampling mode to use to sample the source texture. If not provided, use the one from internalTexture
Optionalformat: numberformat of the output texture. If not provided, use the one from internalTexture
Optionalwidth: numberwidth of the output texture. If not provided, use the one from internalTexture
Optionalheight: numberheight of the output texture. If not provided, use the one from internalTexture
Returns Promise<InternalTexture>
a promise with the internalTexture having its texture replaced by the result of the processing
- postProcessName: string
Apply a post process to a texture