Constructor
new GhostLightIlluminationShader()
Extends
Members
ADJUSTMENTS :string
- Inherited From:
Color adjustments : exposure, contrast and shadows
Type:
- string
CONSTRAIN_TO_LOS :string
- Inherited From:
- Implements:
Constrain light to LOS
Type:
- string
defaultUniforms
- Inherited From:
FALLOFF :string
- Inherited From:
- Implements:
Incorporate falloff if a gradual uniform is requested
Type:
- string
fragmentShader
- Overrides:
SHADER_HEADER :string
- Inherited From:
Memory allocations for the Adaptive Illumination Shader
Type:
- string
Methods
getDarknessPenalty(darknessLevel, luminosity) → {number}
- Inherited From:
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