Class ThinImageProcessingPostProcess
Hierarchy (View Summary)
- EffectWrapper
- ThinImageProcessingPostProcess
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
new ThinImageProcessingPostProcess(
name: string,
engine?: Nullable<AbstractEngine>,
options?: ThinImageProcessingPostProcessOptions,
): ThinImageProcessingPostProcessConstructs a new image processing post process
Parameters
- name: string
Name of the effect
- engine: Nullable<AbstractEngine> = null
Engine to use to render the effect. If not provided, the last created engine will be used
Optionaloptions: ThinImageProcessingPostProcessOptionsOptions to configure the effect
Returns ThinImageProcessingPostProcess
- name: string
Properties
alpha Mode
Type of alpha mode to use when applying the effect (default: Engine.ALPHA_DISABLE). Used only if useAsPostProcess is true.
on Apply Observable
Event that is fired (only when the EffectWrapper is used with an EffectRenderer) right before the effect is drawn (should be used to update uniforms)
on Effect Created Observable
Executed when the effect is created
Readonlyoptions
Options used to create the effect wrapper
Optionaloverride Aspect Ratio
Gets/sets the aspect ratio used to override the default one.
StaticForce GLSL
Force code to compile to glsl even on WebGPU engines. False by default. This is mostly meant for backward compatibility.
Static ReadonlyFragment Url
The fragment shader url
Accessors
color Curves
-
get colorCurves(): Nullable<ColorCurves>
Gets Color curves setup used in the effect if colorCurvesEnabled is set to true .
Returns Nullable<ColorCurves>
-
set colorCurves(value: Nullable<ColorCurves>): void
Sets Color curves setup used in the effect if colorCurvesEnabled is set to true .
Parameters
- value: Nullable<ColorCurves>
Returns void
color Curves Enabled
-
get colorCurvesEnabled(): boolean
Gets whether the color curves effect is enabled.
Returns boolean
-
set colorCurvesEnabled(value: boolean): void
Sets whether the color curves effect is enabled.
Parameters
- value: boolean
Returns void
color Grading Enabled
-
get colorGradingEnabled(): boolean
Gets whether the color grading effect is enabled.
Returns boolean
-
set colorGradingEnabled(value: boolean): void
Gets whether the color grading effect is enabled.
Parameters
- value: boolean
Returns void
color Grading Texture
-
get colorGradingTexture(): Nullable<BaseTexture>
Gets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
Returns Nullable<BaseTexture>
-
set colorGradingTexture(value: Nullable<BaseTexture>): void
Sets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
Parameters
- value: Nullable<BaseTexture>
Returns void
contrast
-
get contrast(): number
Gets contrast used in the effect.
Returns number
-
set contrast(value: number): void
Sets contrast used in the effect.
Parameters
- value: number
Returns void
dithering Enabled
-
get ditheringEnabled(): boolean
Gets whether the dithering effect is enabled.
Returns boolean
-
set ditheringEnabled(value: boolean): void
Sets whether the dithering effect is enabled.
Parameters
- value: boolean
Returns void
dithering Intensity
-
get ditheringIntensity(): number
Gets intensity of the dithering effect.
Returns number
-
set ditheringIntensity(value: number): void
Sets intensity of the dithering effect.
Parameters
- value: number
Returns void
draw Wrapper
-
Get the draw wrapper associated with the effect wrapper
Returns DrawWrapper
the draw wrapper associated with the effect wrapper
effect
exposure
-
get exposure(): number
Gets exposure used in the effect.
Returns number
-
set exposure(value: number): void
Sets exposure used in the effect.
Parameters
- value: number
Returns void
from Linear Space
-
get fromLinearSpace(): boolean
Gets whether the input of the processing is in Gamma or Linear Space.
Returns boolean
-
set fromLinearSpace(value: boolean): void
Sets whether the input of the processing is in Gamma or Linear Space.
Parameters
- value: boolean
Returns void
image Processing Configuration
-
Gets the image processing configuration used either in this material.
Returns ImageProcessingConfiguration
-
Sets the Default image processing configuration used either in the this material.
If sets to null, the scene one is in use.
Parameters
- value: ImageProcessingConfiguration
Returns void
name
-
get name(): string
Gets or sets the name of the effect wrapper
Returns string
-
set name(value: string): void
Parameters
- value: string
Returns void
output Texture Height
-
get outputTextureHeight(): number
- Gets the height of the output texture used to store the result of the post process.
Returns number
-
set outputTextureHeight(value: number): void
- Sets the height of the output texture used to store the result of the post process.
Parameters
- value: number
Returns void
output Texture Width
-
get outputTextureWidth(): number
- Gets the width of the output texture used to store the result of the post process.
Returns number
-
set outputTextureWidth(value: number): void
- Sets the width of the output texture used to store the result of the post process.
Parameters
- value: number
Returns void
temperature
-
get temperature(): number
Gets the white balance correlated color temperature, in Kelvin, used in the effect.
Returns number
-
set temperature(value: number): void
Sets the white balance correlated color temperature, in Kelvin, used in the effect.
Parameters
- value: number
Returns void
tint
-
get tint(): number
Gets the white balance tint offset used in the effect.
Returns number
-
set tint(value: number): void
Sets the white balance tint offset used in the effect.
Parameters
- value: number
Returns void
tone Mapping Enabled
-
get toneMappingEnabled(): boolean
Gets whether tonemapping is enabled or not.
Returns boolean
-
set toneMappingEnabled(value: boolean): void
Sets whether tonemapping is enabled or not
Parameters
- value: boolean
Returns void
tone Mapping Type
-
get toneMappingType(): number
Gets the type of tone mapping effect.
Returns number
-
set toneMappingType(value: number): void
Sets the type of tone mapping effect.
Parameters
- value: number
Returns void
vignette Blend Mode
-
get vignetteBlendMode(): number
Gets the vignette blend mode allowing different kind of effect.
Returns number
-
set vignetteBlendMode(value: number): void
Sets the vignette blend mode allowing different kind of effect.
Parameters
- value: number
Returns void
vignette Camera Fov
-
get vignetteCameraFov(): number
Gets Camera field of view used by the Vignette effect.
Returns number
-
set vignetteCameraFov(value: number): void
Sets Camera field of view used by the Vignette effect.
Parameters
- value: number
Returns void
vignette Center X
-
get vignetteCenterX(): number
Vignette center X Offset.
Returns number
-
set vignetteCenterX(value: number): void
Parameters
- value: number
Returns void
vignette Center Y
-
get vignetteCenterY(): number
Vignette center Y Offset.
Returns number
-
set vignetteCenterY(value: number): void
Parameters
- value: number
Returns void
vignette Centre X
-
get vignetteCentreX(): number
-
set vignetteCentreX(value: number): void
vignette Centre Y
-
get vignetteCentreY(): number
-
set vignetteCentreY(value: number): void
vignette Color
-
get vignetteColor(): Color4
Gets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode) if vignetteEnabled is set to true.
Returns Color4
-
set vignetteColor(value: Color4): void
Sets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode) if vignetteEnabled is set to true.
Parameters
- value: Color4
Returns void
vignette Enabled
-
get vignetteEnabled(): boolean
Gets whether the vignette effect is enabled.
Returns boolean
-
set vignetteEnabled(value: boolean): void
Sets whether the vignette effect is enabled.
Parameters
- value: boolean
Returns void
vignette Stretch
-
get vignetteStretch(): number
Gets Vignette stretch size.
Returns number
-
set vignetteStretch(value: number): void
Sets Vignette stretch size.
Parameters
- value: number
Returns void
vignette Weight
-
get vignetteWeight(): number
Gets Vignette weight or intensity of the vignette effect.
Returns number
-
set vignetteWeight(value: number): void
Sets Vignette weight or intensity of the vignette effect.
Parameters
- value: number
Returns void
white Balance Enabled
-
get whiteBalanceEnabled(): boolean
Gets whether the white balance effect is enabled.
Returns boolean
-
set whiteBalanceEnabled(value: boolean): void
Sets whether the white balance effect is enabled.
Parameters
- value: boolean
Returns void
Methods
bind
-
Binds the data to the effect.
Parameters
- noDefaultBindings: boolean = false
if true, the default bindings (scale and alpha mode) will not be set.
Returns void
- noDefaultBindings: boolean = false
dispose
-
Disposes of the effect wrapper
Returns void
is Ready
-
Get a value indicating if the effect is ready to be used
Returns boolean
true if the post-process is ready (shader is compiled)
update Effect
defines?: Nullable<string>,
uniforms?: Nullable<string[]>,
samplers?: Nullable<string[]>,
indexParameters?: any,
onCompiled?: (effect: Effect) => void,
onError?: (effect: Effect, errors: string) => void,
vertexUrl?: string,
fragmentUrl?: string,
): void
Updates the effect with the current effect wrapper compile time values and recompiles the shader.
Parameters
Define statements that should be added at the beginning of the shader. (default: null)
Set of uniform variables that will be passed to the shader. (default: null)
Set of Texture2D variables that will be passed to the shader. (default: null)
OptionalindexParameters: any
The index parameters to be used for babylons include syntax "#include[0..varyingCount]". (default: undefined) See usage in babylon.blurPostProcess.ts and kernelBlur.vertex.fx
OptionalonCompiled: (effect: Effect) => void
Called when the shader has been compiled.
OptionalonError: (effect: Effect, errors: string) => void
Called if there is an error when compiling a shader.
OptionalvertexUrl: string
The url of the vertex shader to be used (default: the one given at construction time)
OptionalfragmentUrl: string
The url of the fragment shader to be used (default: the one given at construction time)
Returns void
StaticRegister Shader Code Processing
-
RegisterShaderCodeProcessing(
effectWrapperName: Nullable<string>,
customShaderCodeProcessing?: EffectWrapperCustomShaderCodeProcessing,
): voidRegisters a shader code processing with an effect wrapper name.
Parameters
- effectWrapperName: Nullable<string>
name of the effect wrapper. Use null for the fallback shader code processing. This is the shader code processing that will be used in case no specific shader code processing has been associated to an effect wrapper name
OptionalcustomShaderCodeProcessing: EffectWrapperCustomShaderCodeProcessingshader code processing to associate to the effect wrapper name
Returns void
- effectWrapperName: Nullable<string>
Post process used to apply image processing to a scene