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

SpotLight light not working on Android when its Shadow is enabled #25526

Closed
TIBI4 opened this issue Jan 31, 2019 · 5 comments
Closed

SpotLight light not working on Android when its Shadow is enabled #25526

TIBI4 opened this issue Jan 31, 2019 · 5 comments

Comments

@TIBI4
Copy link

TIBI4 commented Jan 31, 2019

Godot version:
3.1 beta 3

OS/device including version:
Android/Xiaomi 4A/Adreno 308

Issue description:

  • All below in Android export.
  • SpotLight is not working when Shadow is enabled (no light, no shadow), but DirectionalLight and OmniLight work as expected with or without Shadow enabled.
  • SpotLight works when Shadow is disabled (only light).
  • SpotLight should work when Shadow is enabled (light and shadow).

Image from Editor info:
In the back: OmniLights
In the front: SpotLights
In the left: Shadow=on
In the right: Shadow=off

image
As you can see, in the Editor (runned by F5), in the left SpotLight there is light and shadow, but in the Android export, there is not light or shadow.

Steps to reproduce:

  • Export the uploaded .zip to Android.
  • Run it on Android.

Minimal reproduction project:
Zipped.zip

@volzhs
Copy link
Contributor

volzhs commented Feb 1, 2019

check this #24710

@akien-mga
Copy link
Member

check this #24710

As per the above it seems to be expected, can you confirm that you get similar results on Android and desktop if you change the Vertex Shading option?

@Calinou
Copy link
Member

Calinou commented Oct 28, 2021

#54343 was able to reproduce this even with vertex shading not forced on mobile.

@norrath-hero Can you reproduce this if you increase the SpotLight's shadow bias to a higher value like 0.4? If that still doesn't work, try enabling Reverse Cull Face on the SpotLight then set the bias to -0.1.

@Calinou Calinou added bug and removed discussion labels Oct 28, 2021
@norrath-hero-cn
Copy link

norrath-hero-cn commented Oct 28, 2021

Just tried these by "Deploy with Remote Debug" :

  1. SpotLight's shadow bias 0.4, 0.8, 1.4, still doesn't work.
  2. Reverse Cull Face on and bias -0.1, still doesn't work.

@akien-mga
Copy link
Member

Fixed by #69826.

akien-mga pushed a commit that referenced this issue Dec 13, 2022
Fixes #69759
Fixes #54343
Fixes #25526

(cherry picked from commit aca8999)
Relintai pushed a commit to Relintai/pandemonium_engine that referenced this issue Dec 22, 2022
Riordan-DC pushed a commit to Riordan-DC/godot that referenced this issue Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants