|
|
|
|
|
|
EvaluateLight_Directional(context, posInput, lightData, unused, 0, L, |
|
|
|
color, attenuation); |
|
|
|
|
|
|
|
// Note: the 'weight' accounts for transmittance from 't0' to 't'. |
|
|
|
|
|
|
|
// Compute transmittance from 't0' to 't'. |
|
|
|
intensity *= TransmittanceHomogeneousMedium(extinction, tOffset); |
|
|
|
|
|
|
|
// Compute the amount of in-scattered radiance. |
|
|
|
sampleRadiance += intensity * color; |
|
|
|