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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Shadow position shifts on Android devices.

Discussion in 'General Graphics' started by akiyamaexe, Mar 3, 2020.

  1. akiyamaexe

    akiyamaexe

    Joined:
    Mar 3, 2020
    Posts:
    12
    The shadow is displayed correctly when checked on a PC, but the position of the shadow is shifted when checked on an Android device.

    This happens when the Rendering Path of Camera is set to Deferred.

    I changed many settings, such as Bias, Shadow Projection, Light Render Mode, and shader, but there was no change.

    Light was confirmed with Directional Light and Spot Light, but both had Peter Panning.

    What is the problem?

    Thanks in advance.
     

    Attached Files:

    Last edited: Mar 3, 2020
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    Can you please submit a bug report?
     
  3. akiyamaexe

    akiyamaexe

    Joined:
    Mar 3, 2020
    Posts:
    12
  4. akiyamaexe

    akiyamaexe

    Joined:
    Mar 3, 2020
    Posts:
    12
    When I created a test project for the report, it was displayed successfully.

    We will investigate for a while.
     
    aleksandrk likes this.
  5. akiyamaexe

    akiyamaexe

    Joined:
    Mar 3, 2020
    Posts:
    12
    The exact cause is unknown, but a workaround has been identified.

    I set the Near value of the camera's viewport Rect to 0.01, but I confirmed that changing it to 0.3 can avoid it.

    No bug report has been filed because it is unknown how to reproduce the issue exactly.

    sorry.
     
  6. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    no problem!
    with the near plane value too small, depth loses precision very quickly
     
    akiyamaexe likes this.
  7. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    Thanks for taking your time to investigate!