Members
ADJUSTMENTS :string
Color adjustments : exposure, contrast and shadows
Type:
- string
CONSTRAIN_TO_LOS :string
- Implements:
Constrain light to LOS
Type:
- string
defaultUniforms :object
- Inherited From:
- Implements:
The default uniform values for the shader. A subclass of AbstractBaseShader must implement the defaultUniforms static field.
Type:
- object
FALLOFF :string
- Implements:
Incorporate falloff if a gradual uniform is requested
Type:
- string
fragmentShader :string
- Inherited From:
- Implements:
The raw fragment shader used by this class. A subclass of AbstractBaseShader must implement the fragmentShader static field.
Type:
- string
SHADER_HEADER :string
Memory allocations for the Adaptive Illumination Shader
Type:
- string
Methods
getDarknessPenalty(darknessLevel, luminosity) → {number}
Determine the correct illumination penalty to apply for a given darkness level and luminosity
Parameters:
Name | Type | Description |
---|---|---|
darknessLevel |
number | The current darkness level on [0,1] |
luminosity |
number | The light source luminosity on [-1,1] |
Returns:
The amount of penalty to apply on [0,1]
- Type
- number