Color from a ShadingContext, which represents the state of the current ray-intersection event. How this done depends on the specific Shader, but this will typically involve scattering the incident ray using a Material and recursively ray-tracing the scattered ray, or illuminating the material directly from a light source, etc.
@author Brad Kimmel
| |