Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question How can I get the culling sphere in shadows rendering using SRP?

Discussion in 'General Graphics' started by Deleted User, Oct 20, 2021.

  1. Deleted User

    Deleted User

    Guest

    The method ScriptableRenderContext.DrawShadows needs a culling sphere as a parameter, but
    Code (CSharp):
    1. CullingResults.ComputeDirectionalShadowMatricesAndCullingPrimitives
    is not a good option because I already calculated the view and projection matrix for shadow rendering. Is there any way I can get the sphere with SRP? How does Unity calculate the culling sphere?