|
|
|
|
|
|
|
|
|
|
half4 GetMainLightDirectionAndAttenuation(LightInput lightInput, float3 positionWS) |
|
|
|
{ |
|
|
|
half4 directionAndAttenuation = lerp(half4(lightInput.position.xyz, 1.0), GetLightDirectionAndAttenuation(lightInput, positionWS), lightInput.position.w); |
|
|
|
half4 directionAndAttenuation = GetLightDirectionAndAttenuation(lightInput, positionWS); |
|
|
|
|
|
|
|
// Cookies are only computed for main light |
|
|
|
directionAndAttenuation.w *= CookieAttenuation(positionWS); |
|
|
|