new ShaderGammaFilter( [options])
Creates a gamma correction filter
Parameters:
| Name | Type | Argument | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Filter options Properties
|
- Source:
Extends
Methods
-
<abstract> fragDataSrc(gl)
-
Generates filter-specific GLSL function
Parameters:
Name Type Description glWebGLRenderingContext WebGL context
- Inherited From:
- Overrides:
- Source:
Returns:
GLSL function definition
- Type
- string | null
-
getSampler(name)
-
Finds a sampler by name
Parameters:
Name Type Description namestring Base sampler name
- Inherited From:
- Overrides:
- Source:
Returns:
Found sampler or undefined
- Type
- ShaderFilter~Sampler | undefined
-
setMode(mode, id)
-
Sets the active mode for the filter
Parameters:
Name Type Description modestring Mode category to modify
idstring Specific mode ID to enable
- Inherited From:
- Overrides:
- Source:
Throws:
-
If shader not registered or mode doesn't exist
- Type
- Error
-
setUniform(name, value)
-
Sets a uniform variable value
Parameters:
Name Type Description namestring Base name of uniform variable
valuenumber | boolean | Array Value to set
- Inherited From:
- Overrides:
- Source:
Throws:
-
If shader not registered
- Type
- Error