Problem with shader

Shader optimization gave a few milliseconds.The big perfomance boost happened when i start to draw 32 light sources to one shadow map.Then draw 32 light to screen. Instead of draw to shadow map, then draw light to screen.It because i do not enable/disable render_targets/matereials/texture for every light.
android 30 light 26-34ms
pc 150 lights 16-17ms :smiley:
web 25 light 35-45ms

Now my problem is that on android i get bad shadows sometimes. Why it can happened? float precision?

3 Likes