Workaround lack of array function parameters in GLES2 shaders

Authored by ahiemstra on May 20 2020, 12:40 PM.