#>1 directional lights in wasm

8 messages · Page 1 of 1 (latest)

fresh flame
#

Hey folks, I'm working on a Bevy CAD project targeting wasm / webgl. We are currently updating our lighting to use multiple directional lights. This works well on desktop, but I just ran into an issue with multiple directional lights for wasm. It looks like (based on this issue https://github.com/bevyengine/bevy/issues/8992) the max number of directional lights is limited for wasm due to an android GPU limitation. Are there any recommended hacky ways to get around this?

GitHub

A refreshingly simple data-driven game engine built in Rust - Issues · bevyengine/bevy

dim knot
#

@umbral stratus or @hard rock may have ideas

#

You could always use a spotlight that's very far away 😅

#

Solving the underlying issue you linked also looks feasible

umbral stratus
hard rock
#

Or submit a PR that makes it configurable instead of using a compile time constant

#

Then we can close the issue

fresh flame
#

Thanks all. I'll get a fix PR in soonish