[require] GLSL >= 1.20 [vertex shader] #version 120 uniform vec4 color = vec4(0.0, 1.0, 0.0, 0.0); void main() { gl_Position = gl_Vertex; } [fragment shader] uniform vec4 color; void main() { gl_FragColor = color; } [test] draw rect -1 -1 1 2 uniform vec4 color 0.0 0.0 1.0 0.0 draw rect 0 -1 1 2 uniform vec4 color 0.0 1.0 0.0 0.0 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)