[require] GLSL >= 1.10 [vertex shader] varying vec4 gl_TexCoord[3]; void main() { gl_TexCoord[0] = vec4(0.0, 1.0, 0.0, 1.0); gl_TexCoord[1] = vec4(1.0, 0.0, 0.0, 1.0); gl_TexCoord[2] = vec4(0.0, 0.0, 1.0, 1.0); gl_Position = ftransform(); } [fragment shader] varying vec4 gl_TexCoord[3]; void main() { gl_FragColor = gl_TexCoord[0] + gl_TexCoord[2]; } [test] draw rect -1 -1 2 2 probe all rgba 0.0 1.0 1.0 1.0