Variable
| Static Public Summary | ||
| public |
A blend function enumeration. |
|
| public |
A color channel enumeration. |
|
| public |
An enumeration of depth copy modes. |
|
| public |
An enumeration of depth test strategies. |
|
| public |
An enumeration of edge detection modes. |
|
| public |
An enumeration of effect attributes. |
|
| public |
An enumeration of effect shader placeholders. |
|
| public |
A glitch mode enumeration. |
|
| public |
An enumeration of blur kernel sizes. |
|
| public |
An enumeration of LUT worker operations. |
|
| public |
A mask function enumeration. |
|
| public |
An enumeration of SMAA predication modes. |
|
| public |
An enumeration of SMAA presets. |
|
| public |
A tone mapping mode enumeration. |
|
| public |
An enumeration of Vignette techniques. |
|
| public |
An enumeration of WebGL extensions. |
|
Static Public
public BlendFunction: Object source
import {BlendFunction} from 'postprocessing'A blend function enumeration.
Important: Do not use BlendFunction.SKIP to disable effects. See
Enabling and Disabling Effects
for more information.
Based on https://www.khronos.org/registry/OpenGL/extensions/NV/NV_blend_equation_advanced.txt
Properties:
| Name | Type | Attribute | Description |
| SKIP | Number | Deprecated. Use DST instead. Warning: This blend function does NOT fully disable the effect. |
|
| SET | Number | Deprecated. Use SRC instead. |
|
| ADD | Number | Additive blending. Supports HDR. |
|
| ALPHA | Number | Deprecated. Use NORMAL instead. |
|
| AVERAGE | Number | Calculates the avarage of the new color and the base color. Supports HDR. |
|
| COLOR | Number | Converts the colors to HSL and blends based on color. |
|
| COLOR_BURN | Number | Color burn. |
|
| COLOR_DODGE | Number | Color dodge. |
|
| DARKEN | Number | Prioritize darker colors. Supports HDR. |
|
| DIFFERENCE | Number | Color difference. Supports HDR. |
|
| DIVIDE | Number | Color division. Supports HDR. |
|
| DST | Number | Overwrites the new color with the base color while ignoring opacity. Supports HDR. |
|
| EXCLUSION | Number | Color exclusion. |
|
| HARD_LIGHT | Number | Hard light. |
|
| HARD_MIX | Number | Hard mix. |
|
| HUE | Number | Converts the colors to HSL and blends based on hue. |
|
| INVERT | Number | Overwrites the base color with the inverted new color. |
|
| INVERT_RGB | Number | Multiplies the new color with the inverted base color. |
|
| LIGHTEN | Number | Prioritize lighter colors. Supports HDR. |
|
| LINEAR_BURN | Number | Linear burn. |
|
| LINEAR_DODGE | Number | Same as ADD but limits the result to 1. |
|
| LINEAR_LIGHT | Number | Linear light. |
|
| LUMINOSITY | Number | Converts the colors to HSL and blends based on luminosity. |
|
| MULTIPLY | Number | Color multiplication. Supports HDR. |
|
| NEGATION | Number | Negates the base color using the new color. |
|
| NORMAL | Number | Overwrites the base color with the new one. Supports HDR. |
|
| OVERLAY | Number | Color overlay. |
|
| PIN_LIGHT | Number | Pin light. |
|
| REFLECT | Number | Color reflection. |
|
| SCREEN | Number | Screen blending. The two colors are effectively projected on a white screen simultaneously. |
|
| SRC | Number | Overwrites the base color with the new one while ignoring opacity. Supports HDR. |
|
| SATURATION | Number | Converts the colors to HSL and blends based on saturation. |
|
| SOFT_LIGHT | Number | Soft light. |
|
| SUBTRACT | Number | Subtracts the new color from the base color. |
|
| VIVID_LIGHT | Number | Vivid light. |
public ColorChannel: Object source
import {ColorChannel} from 'postprocessing'A color channel enumeration.
public DepthCopyMode: Object source
import {DepthCopyMode} from 'postprocessing'An enumeration of depth copy modes.
public DepthTestStrategy: Object source
import {DepthTestStrategy} from 'postprocessing'An enumeration of depth test strategies.
public EdgeDetectionMode: Object source
import {EdgeDetectionMode} from 'postprocessing'An enumeration of edge detection modes.
public EffectAttribute: Object source
import {EffectAttribute} from 'postprocessing'An enumeration of effect attributes.
Attributes can be concatenated using the bitwise OR operator.
Properties:
| Name | Type | Attribute | Description |
| NONE | Number | No attributes. Most effects don't need to specify any attributes. |
|
| DEPTH | Number | Describes effects that require a depth texture. |
|
| CONVOLUTION | Number | Describes effects that fetch additional samples from the input buffer. There cannot be more than one effect with this attribute per EffectPass. |
Example:
const attributes = EffectAttribute.CONVOLUTION | EffectAttribute.DEPTH;
public EffectShaderSection: Object source
import {EffectShaderSection} from 'postprocessing'An enumeration of effect shader placeholders.
Properties:
| Name | Type | Attribute | Description |
| FRAGMENT_HEAD | String | A placeholder for function and variable declarations in the fragment shader. |
|
| FRAGMENT_MAIN_UV | String | A placeholder for UV transformations in the fragment shader. |
|
| FRAGMENT_MAIN_IMAGE | String | A placeholder for color calculations in the fragment shader. |
|
| VERTEX_HEAD | String | A placeholder for function and variable declarations in the vertex shader. |
|
| VERTEX_MAIN_SUPPORT | String | A placeholder for supporting calculations in the vertex shader. |
public GlitchMode: Object source
import {GlitchMode} from 'postprocessing'A glitch mode enumeration.
public KernelSize: Object source
import {KernelSize} from 'postprocessing'An enumeration of blur kernel sizes.
Properties:
| Name | Type | Attribute | Description |
| VERY_SMALL | Number | A very small kernel that matches a 7x7 Gaussian blur kernel. |
|
| SMALL | Number | A small kernel that matches a 25x25 Gaussian blur kernel. |
|
| MEDIUM | Number | A medium sized kernel that matches a 63x63 Gaussian blur kernel. |
|
| LARGE | Number | A large kernel that matches a 127x127 Gaussian blur kernel. |
|
| VERY_LARGE | Number | A very large kernel that matches a 391x391 Gaussian blur kernel. |
|
| HUGE | Number | A huge kernel that cannot be replicated with a single Gaussian blur pass. |
public LUTOperation: Object source
import {LUTOperation} from 'postprocessing'An enumeration of LUT worker operations.
Properties:
| Name | Type | Attribute | Description |
| SCALE_UP | String | Tetrahedral upscale operation. |
public MaskFunction: Object source
import {MaskFunction} from 'postprocessing'A mask function enumeration.
Properties:
| Name | Type | Attribute | Description |
| DISCARD | Number | Discards elements when the respective mask value is zero. |
|
| MULTIPLY | Number | Multiplies the input buffer with the mask texture. |
|
| MULTIPLY_RGB_SET_ALPHA | Number | Multiplies the input RGB values with the mask and sets alpha to the mask value. |
|
| MULTIPLY_RGB | Number | Multiplies the input RGB values with the mask and keeps the original alpha. |
public PredicationMode: Object source
import {PredicationMode} from 'postprocessing'An enumeration of SMAA predication modes.
public SMAAPreset: Object source
import {SMAAPreset} from 'postprocessing'An enumeration of SMAA presets.
public ToneMappingMode: Object source
import {ToneMappingMode} from 'postprocessing'A tone mapping mode enumeration.
Properties:
| Name | Type | Attribute | Description |
| LINEAR | Number | No tone mapping, only exposure. |
|
| REINHARD | Number | Simple Reinhard tone mapping. |
|
| REINHARD2 | Number | Modified Reinhard tone mapping. |
|
| REINHARD2_ADAPTIVE | Number | Simulates the optic nerve responding to the amount of light it is receiving. |
|
| UNCHARTED2 | Number | Uncharted 2 tone mapping. http://filmicworlds.com/blog/filmic-tonemapping-operators. |
|
| OPTIMIZED_CINEON | Number | Deprecated. Use |
|
| CINEON | Number | Optimized filmic operator by Jim Hejl and Richard Burgess-Dawson. Requires three r168 or higher. |
|
| ACES_FILMIC | Number | ACES tone mapping with a scale of 1.0/0.6. |
|
| AGX | Number | Filmic tone mapping. Requires three r160 or higher. https://github.com/EaryChow/AgX. |
|
| NEUTRAL | Number | Neutral tone mapping by Khronos. Requires three r162 or higher. https://modelviewer.dev/examples/tone-mapping. |
public VignetteTechnique: Object source
import {VignetteTechnique} from 'postprocessing'An enumeration of Vignette techniques.
public WebGLExtension: Object source
import {WebGLExtension} from 'postprocessing'An enumeration of WebGL extensions.
Properties:
| Name | Type | Attribute | Description |
| DERIVATIVES | String | Enables derivatives by adding the functions dFdx, dFdy and fwidth. |
|
| FRAG_DEPTH | String | Enables gl_FragDepthEXT to set a depth value of a fragment from within the fragment shader. |
|
| DRAW_BUFFERS | String | Enables multiple render targets (MRT) support. |
|
| SHADER_TEXTURE_LOD | String | Enables explicit control of texture LOD. |
