Creates a new DiffuseGradientChunk object.
Sets the render state for this method.
Generate the code that applies the calculated shadow to the diffuse light
The register cache the compiler is currently using for the register management.
Resets the method's state for compilation.
Clears the render state for this method.
Get the fragment shader code that will generate the code relevant to a single light.
Get the fragment shader code that will generate the code relevant to a single light probe object.
Get the fragment shader code that will be needed before any per-light code is added.
Get the vertex shader code for this method.
Initializes unchanging shader constants using the data from a MethodVO.
Resets the compilation state of the method.
Sets the render state for a single renderable.
Add an event listener
Dispatch an event
check if an object has an event listener assigned to it
Remove an event listener
Generated using TypeDoc
DiffuseGradientChunk is an alternative to DiffuseBasicChunk in which the shading can be modulated with a gradient to introduce color-tinted shading as opposed to the single-channel diffuse strength. This can be used as a crude approximation to subsurface scattering (for instance, the mid-range shading for skin can be tinted red to similate scattered light within the skin attributing to the final colour)