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

"RL Hair shader" doesn't receive light from the Spot Light (Second Light) on mobile (Android Build). #45

Open
kzinnia opened this issue Jul 23, 2023 · 2 comments

Comments

@kzinnia
Copy link

kzinnia commented Jul 23, 2023

SpotLightError

As shown in the attached picture, "RL Hair shader" doesn't receive light from the Spot Light on mobile (Android Build).
However, it looks fine in the Unity editor.

Spot Light is Second Light from back. (Main is Directional Light from front)
I tried to chage type of spot light to dir light, but it doesn't work.

Unity 2022.3.5f1
CC/iC Importer URP 1.4.9

[Android build info]
URP
Open GLES3
min API Level : Android 8.0 'Oreo'
Target API Level : Android 13.0
IL2CPP
.NET Framework
ARMv7, ARM64

Please Check.
Thank you!

@soupday
Copy link
Owner

soupday commented Aug 1, 2023

Ok, I got the problem to reproduce in 2022.3.5 android build.

For some reason, to fix this I had to disable the other quality levels for the android build:

androidqual

It seems like it was using the lowest quality level for the hair, which was set to only use the main light and disables additional lights. Even though the skin (also a custom shader) was clearly using the additional lights, which makes no sense at all.

@kzinnia
Copy link
Author

kzinnia commented Aug 2, 2023

I disabled it as you told me to and tried building,
and it was successful!
Thanks!

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

2 participants