1[require]
2GLSL >= 1.10
3GL_ARB_shading_language_include
4
5[shader include]
6/test path/to/test_include2.shader
7
8void main()
9{
10	vec4 scale = vec4(0.5);
11	vec4 bias = vec4(0.1);
12	s1 a;
13	a.v4 = vec4(0.25, 0.5, 0.75, 1.0);
14	a.f1 = 0.0;
15	gl_FragColor = a.v4 * scale + bias;
16}
17
18[shader include]
19/test path/to/test_include.shader
20
21struct s1 {
22  float f1;
23  vec4 v4;
24};
25
26#include "/test path/to/test_include2.shader"
27
28[fragment shader]
29#extension GL_ARB_shading_language_include: enable
30
31#include "/test path/to/test_include.shader"
32
33
34[test]
35draw rect -1 -1 2 2
36relative probe rgba (0.5, 0.5) (0.225, 0.35, 0.475, 0.6)
37