[require] GLSL >= 1.20 [vertex shader file] glsl-mvp.vert [fragment shader] #version 120 void main() { const bvec2 v_true = bvec2(true, true); const bvec2 v_some = bvec2(true, false); const bvec2 v_none = bvec2(false, false); const bool true1 = all(v_true); const bool false1 = all(v_some); const bool false2 = all(v_none); gl_FragColor = vec4(float(false1), float(true1), float(false2), 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