[require] GLSL >= 1.10 [vertex shader passthrough] [fragment shader] uniform vec4 a, b; void main() { vec4 color; if (a == b) { color = vec4(0, 1, 0, 1); } else { color = vec4(1, 0, 0, 1); } gl_FragColor = color; } [test] uniform vec4 a 1.0 2.0 3.0 4.0 uniform vec4 b 1.0 2.0 3.0 4.0 draw rect -1 -1 2 2 probe all rgb 0 1 0