sveltejs / gl

A (very experimental) project to bring WebGL to Svelte
https://svelte.dev/repl/8d6d139a3d634c2fb1e1ff107c123dd5?version=3.16.4
MIT License
603 stars 26 forks source link

Figure out maximum NUM_LIGHTS etc #12

Open Rich-Harris opened 5 years ago

Rich-Harris commented 5 years ago

I'd hardcoded NUM_LIGHTS to 8, which resulted in too many varyings for some GPUs. It'd be nice if this was configured automatically (or was paramterisable) and Svelte GL warned you if you tried to add too many lights