soupday / cc_unity_tools_URP

Package for importing and auto setup of Character Creator (3 & 4) and iClone (7 & 8) character exports for Unity URP Pipeline.
GNU General Public License v3.0
101 stars 26 forks source link

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

Open kzinnia opened 11 months ago

kzinnia commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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