[require] GLSL >= 1.10 [vertex shader file] glsl-mvp.vert [fragment shader] int exp2(int x) { return x; } void main() { int x = exp2(6); gl_FragColor = vec4(0.0, float(x) / 12.0, 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 0.5 0.0