The initial values of the shader uniforms.
Static
batchReturns default uniforms associated with the batched version of this sampler.
Static
batchThe batch fragment shader source.
Static
batchBatch geometry associated with this sampler.
Static
batchThe batch renderer to use.
Static
batchThe batch generator to use.
Static
batchThe batch vertex shader source.
Static
batchThe size of a vertex with all its packed attributes.
Static
classStatic
CONTRASTContrast adjustment
Static
defaultThe default uniform values for the shader. A subclass of AbstractBaseShader must implement the defaultUniforms static field.
Static
EXPOSUREExposure adjustment.
Static
fragmentStatic
pausableIs this shader pausable or not?
Static
reservedThe number of reserved texture units for this shader that cannot be used by the batch renderer.
Static
SATURATIONSaturation adjustment
Static
vertexProtected
Static
_packPack interleaved geometry custom function.
Protected
Static
_preA prerender function happening just before the batch renderer is flushed.
Activate or deactivate this sampler. If set to false, the batch rendering is redirected to "batch". Otherwise, the batch rendering is directed toward the instance pluginName (might be null)
The plugin name associated for this instance, if any. Returns "batch" if the shader is disabled.
Static
ADJUSTMENTSThe adjustments made into fragment shaders.
Reset the shader uniforms back to their initial values.
Protected
_configureProtected
A one time initialization performed on creation.
Static
createA factory method for creating the shader using its defined default values
Static
createCreate a batch plugin for this sampler class.
The batch plugin class linked to this sampler class.
Static
initializeInitialize the batch geometry with custom properties.
Static
registerRegister the plugin for this sampler.
Optional
options: { force?: object } = {}The options
Optional
force?: objectOverride the plugin of the same name that is already registered?
A simple shader that makes the original texture's red channel the alpha channel while still keeping channel information. Used in conjunction with the AlphaBlurFilterPass and Fog of War.