Commit graph

8 commits

Author SHA1 Message Date
Emile Belanger
7e9659d8f8 Disable old GLSL code for now 2021-05-22 11:23:59 +01:00
Emile Belanger
66539885d4 Some old GLES2 devices need constants only in 'for' loops in the shaders.
Testing stupid hack
2021-05-22 11:23:59 +01:00
Emile Belanger
5de9616c70 Trying to fix the invalid use of 'for' statement in the shader, GLES2 has strict requirements on 'for' loops and how the are constructed..this might fix it 2021-05-22 11:23:59 +01:00
Emile Belanger
36f2420c32 Disabled sport light stuff in shader and removed some branches.
Need to remove spot light data from uniform array
2021-05-22 11:23:57 +01:00
Emile Belanger
f199011c08 Optimise lights to create separate shaders for different combinations. Code cleanup 2021-05-22 11:23:57 +01:00
Emile Belanger
0a28d50b12 Optimise dyn lights a bit 2021-05-22 11:23:57 +01:00
Emile Belanger
40135c4c86 Dynamic lights hacked back in for GLES2, needs optimisation 2021-05-22 11:23:57 +01:00
Emile Belanger
366a21a613 Added gles2 shaders. Started branch-less implementation 2021-05-22 11:23:56 +01:00