|
|
|
|
|
|
{ |
|
|
|
half index = half(i); |
|
|
|
Light light = GetLight(index, inputData.positionWS); |
|
|
|
light.attenuation *= LocalLightRealtimeShadowAttenuation(index, inputData.positionWS); |
|
|
|
light.attenuation *= LocalLightRealtimeShadowAttenuation(light.index, inputData.positionWS); |
|
|
|
color += LightingPhysicallyBased(brdfData, light, inputData.normalWS, inputData.viewDirectionWS); |
|
|
|
} |
|
|
|
#endif |
|
|
|