|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// Return true if BakedShadowMask are enabled
|
|
|
|
public bool PrepareLightsForGPU(CommandBuffer cmd, Camera camera, ShadowSettings shadowSettings, CullResults cullResults, |
|
|
|
public bool PrepareLightsForGPU(CommandBuffer cmd, HDCamera hdCamera, ShadowSettings shadowSettings, CullResults cullResults, |
|
|
|
Camera camera = hdCamera.camera; |
|
|
|
|
|
|
|
// If any light require it, we need to enabled bake shadow mask feature
|
|
|
|
m_enableBakeShadowMask = false; |
|
|
|
m_maxShadowDistance = shadowSettings.maxShadowDistance; |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
UpdateDataBuffers(); |
|
|
|
} |
|
|
|
return m_enableBakeShadowMask; |
|
|
|
} |
|
|
|
m_enableBakeShadowMask = m_enableBakeShadowMask && hdCamera.frameSettings.enableShadowMask; |
|
|
|
|
|
|
|
return m_enableBakeShadowMask; |
|
|
|
} |
|
|
|
|
|
|
|
static float CalculateProbeLogVolume(Bounds bounds) |
|
|
|