Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved [Warning]Reduced additional punctual light shadows resolution by 2 to make 24 shadow maps

Discussion in 'Universal Render Pipeline' started by Stormer2020, Mar 31, 2023.

  1. Stormer2020

    Stormer2020

    Joined:
    Sep 14, 2020
    Posts:
    89
    Hi~
    I dont know why show this warning in play mode.
    Unity 2021.3.12,URP

    Reduced additional punctual light shadows resolution by 2 to make 24 shadow maps fit in the 512x512 shadow atlas. To avoid this, increase shadow atlas size, decrease big shadow resolutions, or reduce the number of shadow maps active in the same frame

    Library\PackageCache\com.unity.render-pipelines.universal@12.1.7\Runtime\Passes\AdditionalLightsShadowCasterPass.cs
    Line 410
    Code (CSharp):
    1. if (!m_IssuedMessageAboutShadowMapsRescale && shadowSlicesScaleFactor > 1)
    2.             {
    3.                 Debug.Log($"Reduced additional punctual light shadows resolution by {shadowSlicesScaleFactor} to make {totalShadowSlicesCount} shadow maps fit in the {atlasSize}x{atlasSize} shadow atlas. To avoid this, increase shadow atlas size, decrease big shadow resolutions, or reduce the number of shadow maps active in the same frame");
    4.                 m_IssuedMessageAboutShadowMapsRescale = true; // Only output this once per shadow requests configuration
    5.             }
    How can I fix this?

    --------------------------------
    Resolved.
    I turn off the point light's shadow, the warning has gone.
    theLight.shadows = LightShadows.None;
     
    Last edited: Mar 31, 2023
  2. Legendary1I

    Legendary1I

    Joined:
    Aug 12, 2021
    Posts:
    1
    If you're new to Unity and you're getting this error, you probably don't know what it's talking about.

    In unity editor, go to the hierarchy tree, in the search engine type Point Light, then when all the Point Lights appear, select them all at once. Then in the inspector, set the Shadows>Shadows Type = No Shadows section.