|
|
|
|
|
|
// Note: There is no shadowDimmer when there is no shadow mask |
|
|
|
#endif |
|
|
|
|
|
|
|
// Volumetric don't use screenspace shadow. Transparent neither (as we don't have the depth information) |
|
|
|
// Transparent have no contact shadow information |
|
|
|
#ifndef _SURFACE_TYPE_TRANSPARENT |
|
|
|
shadow = min(shadow, GetContactShadow(lightLoopContext, lightData.contactShadowIndex)); |
|
|
|
#endif |
|
|
|
|
|
|
shadow = lerp(1.0, shadow, lightData.shadowDimmer); |
|
|
|
#endif |
|
|
|
|
|
|
|
// Volumetric don't use screenspace shadow. Transparent neither (as we don't have the depth information) |
|
|
|
// Transparent have no contact shadow information |
|
|
|
#ifndef _SURFACE_TYPE_TRANSPARENT |
|
|
|
shadow = min(shadow, GetContactShadow(lightLoopContext, lightData.contactShadowIndex)); |
|
|
|
#endif |
|
|
|