summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-large-uniform-array.shader_test
blob: a11c2608898026778cb51d9caf3387198c5b0589 (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
[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 file]
glsl-color.frag

[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