Offset and length were out of bounds for the array when setting a Vector2 array for a shader

You are only using the first element in your shader, so MojoShader “optimizes” your array:

uniform vec4 ps_uniforms_vec4[1];

If you are planning to do more shader programming, and you don’t care for Consoles or Apple platforms, I would suggest to switch to my ShaderConductor branch: Compute, Tessellation & Geometry Shader

1 Like