Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Point Lights and Spotlights have a dark spot in the "center" of the cast light on Windows OS with AMD GPU (URP) #81

Closed KjartanKennedy closed 1 year ago

KjartanKennedy commented 2 years ago

Describe the bug Point lights and spotlights have a dark spot in the "center" of the light cast on geometry using the flat kit on one team member's machine (Windows, AMD GPU), but other team members' lighting works as expected (no one else has an AMD GPU however).

To Reproduce We've been unable to reproduce the issue on any other computer and unable to get rid of the issue on the offending machine, but here's what we can provide:

  1. Set up a Unity project with URP and Flat Kit (versions detailed below)
  2. Create a flat plane with a Flat Kit shader/material applied
  3. Replace the directional light with a point light or spotlight pointed at the plane
  4. Observe the dark spot in the "center" of where the light shines on the plane

Expected behavior The "center" of the light should be lit normally as the brightest part.

Screenshots Incorrect lighting on Windows with AMD GPU image

Correct lighting on Macbook Pro with Apple Silicon

CleanShot 2022-06-01 at 07 48 24@2x

Unity details: Flat Kit version 2.9.8 Unity 2021.2.3f1 Dev platform: OSXEditor Target platform: StandaloneWindows64 URP installed: True, version 12.1.1 Render pipeline: UniversalPipeline Color space: Linear

Additional context As mentioned, this is only happening on one team member's machine using Windows and an AMD GPU, with graphics drivers being fully up to date. Switching to a non-flatkit material removes the problem. We are using real-time lighting.

dustyroom-studio commented 2 years ago

Hi, thank you for such a detailed report. Before I try reproducing it, could you please verify that the problem still occurs if you try recreating it in Unity later than 2021.2.19f1 — as of now, it is the minimum required version for Flat Kit to work properly. A screenshot from the Flat Kit's Asset Store page:

flat-kit-asset-store-rp-compatibility-chart_1

KjartanKennedy commented 2 years ago

I appreciate your patience; we've just tested updating Unity to 2021.3.3f1 and making sure URP is the most recent version (12.1.6) and we're still getting the same results: image

In case it's helpful, I've also included a screenshot of everything in the console from opening the project to the moment the screenshot was taken. I don't see anything in there that looks particularly relevant, but including it nonetheless: image

dustyroom-studio commented 2 years ago

Hi,

Could you please check if you use any 3rd party assets in your project that interfere with Unity's URP and/or lighting? From the screenshots of the Console errors I can tell that there may be some of the tools in the project that could cause this issue. To learn if they do cause an issue, could you please, for the testing purpose, create a fresh URP project and import nothing but Flat Kit, complete its setup it's setup and try reproducing the problem?

Also, what happens if you temporarily turn off the Outline?

KjartanKennedy commented 2 years ago

We've tried disabling all of the render features and deleting all of the other packages we believe could be causing the issue with no luck, however starting a fresh project with only URP and FlatKit did not cause the issue. We're a bit perplexed, but we'll spend a bit more time copying over settings and such to the fresh project to try to discover what may be causing it.

dustyroom-studio commented 2 years ago

Thanks a lot! Please share your findings if you can.