Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional light not working on Android build target #9

Open
MThogersen opened this issue Sep 13, 2022 · 0 comments
Open

Additional light not working on Android build target #9

MThogersen opened this issue Sep 13, 2022 · 0 comments

Comments

@MThogersen
Copy link

MThogersen commented Sep 13, 2022

In a clean unity 2021.3.9f (LTS) install using URP 12.1.7, additional lights seem to be broken when setting the build target to Android.
Here's a screen shot with Windows as build target:

image

And here's the exact same scene, just with android as build target:
image

Details:

  • Using the Toon material included in the package.
  • No settings were changed to the default 3D (URP) template
  • Render pipeline set to the URP "HighFidelity" preset (has 8 per pixel lights set for additional light and most settings maxed out)

Thanks for your work - just thought I would report it for anyone battling with this problem. I don't know if this may be related to the light indexing problem described here: https://forum.unity.com/threads/additional-lighting-issue-when-switch-to-android-platform.1191736/
With a unity case (though it is marked as fixed): https://issuetracker.unity3d.com/issues/mobile-urp-all-lights-are-emitting-light-from-one-light-spot-when-the-platform-is-set-to-android-or-ios


Update: The problem doesn't seem to be in the light indexing, but rather in calculating the ToonAttenuation. Tried applying a standard lighting model for the additional lights, which worked as expected.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant