summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-large-uniform-array.shader_test
blob: 49c14df03ff3195154b7f2844da9b7db30c00077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[require]
GLSL >= 1.10

[vertex shader]
uniform vec4 array[500];

void main()
{
    gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
    gl_FrontColor = array[0] + array[340] + array[473] - vec4(1, 0, 1, 0);
}

[fragment shader]
void main()
{
	gl_FragColor = gl_Color;
}

[test]
ortho
clear color 0.5 0.5 0.5 0.5
clear
uniform vec4 array[0]   0.2 0.3 0.4 0
uniform vec4 array[340] 0.5 0.2 0.7 0
uniform vec4 array[473] 0.6 0.1 0.6 0
draw rect 10 10 10 10
probe rgb 15 15 0.3 0.6 0.7