[require] GLSL >= 1.20 [vertex shader] void main() { gl_Position = gl_Vertex; } [fragment shader] #version 120 uniform vec2[2] color; void main() { gl_FragColor = vec4(color[0], color[1]); } [test] uniform vec2 color 0.0 1.0 uniform vec2 color[1] 0.0 0.0 draw rect -1 -1 1 2 uniform vec2 color[0] 0.0 0.0 uniform vec2 color[1] 1.0 0.0 draw rect 0 -1 1 2 relative probe rgb (0.25, 0.5) (0.0, 1.0, 0.0) relative probe rgb (0.75, 0.5) (0.0, 0.0, 1.0)