Shadow Strength Settings Drastically Changes Entire Image | Unity LTS 2020.3.20+ | iOS Build

Hey guys!
Recently I found the bug that happened when I was migrating project from 2018.4.31f1 to 2020.3.23f.
This happens only on iOS build.
When you change the shadow strength on directional light to 0.86 (just for example) it affects the entire screen in a strange way: from flashing to negative image.
I thought that bug could only happen only with my shaders or something I changed. But you can recreate this with default unity settings on default cubes and planes.

Unity setup - Default
Built-in Render Pipeline + Gamma Color Space

Steps for reproducing:

  • Create an empty 3d project
  • Change platform in build settings on iOS
  • Setup Cube and Plane so you can see them
  • Change the Shadow Strength parameter of Directional Light to 0.86 for negative image and 0.8 to flashing image
  • from the 2020.3.20 you can see this problem already in the editor in the Game window*
  • Build

Shadow Strength 0.86 and Shadow Strength 0.8
7737972--972354--Screenshot 2021-12-01 at 11.52.12.jpg 7737972--972357--Screenshot 2021-12-15 at 11.30.32.png

I tried many options in Player Settings, but I can't find anything that works.
Maybe I don't know something obvious, I don't know.
Right now I'm using 2020.3.19

UPD: sorry for the wrong forum section
found this post https://discussions.unity.com/t/863463
It doesn't help with shadows

I have the same problem. I am working on the 2020.3.25.

I have the same issue on iOS.

Do we have any related bug submitted to the Unity?

Issue link: https://issuetracker.unity3d.com/issues/directional-light-shadows-are-displayed-just-black-or-just-white-when-changing-the-light-strength

Fixed in 2021 without backporting to 2020. Super strange...

1 Like

The same thing is happening in 2021.3.1f1
UPD: Seems like this problem affects only Mac Editor, on Windows it works fine

1 Like

[quote=“vlasove”, post:6, topic: 865393]
The same thing is happening in 2021.3.1f1
UPD: Seems like this problem affects only Mac Editor, on Windows it works fine
[/quote]
Agree, I see the same issue in 2021.3.4f1

Any solutions? Tried 2021.3.6f, 2021.3.7f, 2021.3.8f but no luck. MacOS Monterey 12.3.1

Happening to my project too when I update from 2019 to 2021.3.9f1. Yet with a complete new and fresh 2021 project it works well.

In my my own project it changes color intensity, saturation, exposure and who knows what. There are no soft shadows at all. And as seen in the screenshots in the OG post, light and shadow can be completely reversed. Depending on how you move the Strength slider of the realtime shadow it goes into complete black or complete white.

I tried as well to export my 2019 project as unity package and imported it into 2021 editor, same problem.

I tried to replace the lights, same problem.

I tried with pretty much any setting in lights and objects as well as quality settings. No luck.

2021.3.9f1, intel iMac Monterey


8472389--1126022--upload_2022-9-28_20-33-46.jpg

Looks like this bug has regressed. Just had this bite me on 2021.3 & 2022.2; on a Mac set build target for IOS then slide shadow strength slider on a directional light and crazy shadow map glitches occur. Reported (IN-36845)

1 Like

Been chasing this for days, finally discovered this thread. Can confirm happening on 2021.3.5f1 MacOS with iOS build settings in editor.