[require] GLSL >= 1.20 [vertex shader file] glsl-mvp.vert [fragment shader] #version 120 void main() { const vec2 v1 = clamp(vec2(-10.0, -15.0), vec2(-5.0, 5.0), vec2(1.0, 10.0)); const vec2 v2 = clamp(v1, -0.25, 1.25); gl_FragColor = vec4(0.0, v2.x + v2.y, 0.0, 1.0); } [test] clear color 0.0 0.0 0.0 0.0 clear ortho draw rect 10 10 10 10 probe rgb 15 15 0.0 1.0 0.0