Light rendering issue

Godot Version

4.3

hello :raising_hands:

i have made a game for android ; that has a problem ; some pointlight 2Ds wont be rendered in the mobile :wilted_flower: but i can see them in Editor , and Windows export version and the debug section.

but not in android .

there is no code related to these lights.

i have increased the max rendering lights options in rendering section in project setting but it does not solve the problem . :wilted_flower:

thanks for help

There is a limit of 16 (or 15) point lights can be rendered per object. If an object has point light more than this number, some of the lights are not rendered. It’s very random and unpredictable how this works when it exceeds the limit.

Of course this doesn’t explain why you see the issue only in android. It may be a coincidence, or maybe extra setting for android.

but i have incresed that number from 16 to 40 :wilted_flower:

Max renderable lights is the ‘overall number of lights that can be rendered at a time’. But it’s not a setting for ‘overall number of lights that can be rendered per object’. This setting is hardcoded. Cannot be changed. There is a lot of discussions about it but not a solution yet.

You may want to rethink about your project:

  • Do you really need that many lights?
  • Would it matter that much if you decrease the number of lights?
  • Can you just use shaders as a light?

using shaders was a great idea ; thanks :rose::moai:

but there is not too many lights ; just three :wilted_flower: two of them wont be rendered :wilted_flower::wilted_flower::wilted_flower:

You’ve read this ?