blob: 0d9150c72e85231bc60e6821f7efd281e952c7a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
[require]
GLSL >= 1.20
[vertex shader file]
glsl-mvp.vert
[fragment shader]
void main() {
const float sqrt_two_over_two = sin(0.785398163397448);
const float one = sin(1.5707963267949);
const float one_half = sin(2.61799387799149);
gl_FragColor = vec4(sqrt_two_over_two, one, one_half, 1.0);
}
[test]
draw rect -1 -1 2 2
probe all rgb 0.707106781186548 1.0 0.5
|