I've got a problem with a shader I'm using internally on my library raylib (https://github.com/raysan5/raylib).
That shader is generic and computes lighting for up to 8 lights that can be omni, spot and directional. Shader works ok on most platforms (Windows, Linux, OSX, Android, HTML5) except on Raspberry Pi (I use a Raspberry Pi 1 Model B). Here it is my GLSL shader for reference: https://github.com/raysan5/raylib/blob/ ... tandard.fs
Shader just fails silently on my Pi, screens turns in white. No compile errors, no warnings.
After long investigation, it seems that shader fails due to the for-loop and branching, on my tests I got it working if I setup a specific lights number and type avoiding for-loop and branches... but I need it to be more generic.
Here it is a detailed explanation (last post): https://github.com/raysan5/raylib/issues/167
Could someone give me some tip/advice/help to solve this problem?