-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
shadow of OmniLight and SpotLight not working on Android mobile #54343
Comments
Vertex shading is forced by default on mobile, which is likely why it doesn't work there (your ground plane lacks subdivision). To resolve this (at a performance cost), disable Force Vertex Shading.mobile in the Project Settings and export to Android again. That said, the better solution to preserve performance is to subdivide your ground place to a reasonable level to allow individual vertices to be lit by the SpotLight. Or, better, use fully baked lightmaps to get the both of both worlds 🙂 |
After disable Force Vertex Shading.mobile, shadow of OmniLight works fine, but when enable SpotLight shadow the SpotLight are complete ignoired, is this a design or a bug? I confirm this by "Deploy with Remote Debug" and manually enable/disable SpotLight shadow multiple times |
Duplicate of #25526. |
After flipping around some options in the Project Settings->Rendering->Quality page, I find some interesting things
Spotlight with shadow work fine on my device, blow picture are captured on same android device here are some extra tests: disable "Force Vertex Shading.Mobile", but set "Filter Mode.Modile" to disable enable "Force Vertex Shading.Mobile", but set "Filter Mode.Modile" to pcf5 enable "Force Vertex Shading.Mobile", but set "Filter Mode.Modile" to disable it seems the logical related to "Filter Mode.Mobile" is critical to this issue, some things related to "Filter Mode.Mobile" is broken Spotlight and shadow shadow.zip this is a long time issue on the wild, after this I feel Godot 3.x is perfect! |
New founds on PC, set renderer to gles2, then set Shadows->"Filter Mode" to disable, spotlight with shadow not working on pc too I will report as a new issue |
Just confirmed this fixed by #69826 |
Fixes godotengine#69759 Fixes godotengine#54343 Fixes godotengine#25526
Godot version
Godot Engine v3.4.rc2.official.23955fc28 and Godot Engine v3.3.4.stable.official
System information
Android 9, Adreno (TM) 616, GLES2 and GLES3
Issue description
Godot Engine v3.4.rc2.official.23955fc28 - https://godotengine.org
OpenGL ES 2.0 Renderer: Adreno (TM) 616
OpenGL ES Batching: ON
Shadow of OmniLight and SpotLight not working on Android mobile
Works fine on windows
Steps to reproduce
Minimal reproduction project
shadow.zip
The text was updated successfully, but these errors were encountered: