|
|
|
|
|
|
float3 L = -lightToSample * distRcp; |
|
|
|
|
|
|
|
float3 color; float attenuation; |
|
|
|
EvaluateLight_Punctual(context, posInput, light, unused, 1, |
|
|
|
EvaluateLight_Punctual(context, posInput, light, unused, |
|
|
|
0, L, lightToSample, distances, color, attenuation); |
|
|
|
|
|
|
|
// Important: |
|
|
|
|
|
|
float4 distances = float4(1, 1, 1, distProj); |
|
|
|
|
|
|
|
float3 color; float attenuation; |
|
|
|
EvaluateLight_Punctual(context, posInput, light, unused, extinction, |
|
|
|
EvaluateLight_Punctual(context, posInput, light, unused, |
|
|
|
0, L, lightToSample, distances, color, attenuation); |
|
|
|
|
|
|
|
// Important: |
|
|
|