Make MAX_DIRECTIONAL_LIGHTS a runtime value #8992
Labels
A-Rendering
Drawing game state to the screen
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
Currently
MAX_DIRECTIONAL_LIGHTS
is const, which prevents us from setting it to platform-specific (detected at runtime) values. For example, we need to set it to1
for Adreno GPUs on WebGL. Currently, we are hard coding the value to1
on WebGL for all GPUs, which is unnecessary.What solution would you like?
Make it a dynamic value set and read at runtime.
See #8505 for more information.
The text was updated successfully, but these errors were encountered: