/* Computes the diffuse reflection of the macrosurface */
vec3 lambert_diffuse(vec3 base_color)
{
- // Scale by pi to get a result per steradian, suitable for integration
+ /* Scale by pi (cosine-weighted area of a hemisphere) because the light
+ scatters in every direction */
return base_color/PI;
}