1 # Basic test to make sure the path of the shader include
2 # is processed correctly. Specifically here we are testing
3 # '.' and '..' act as expected. Here the second shader
4 # include should replace the first as they should end up
8 GL_ARB_shading_language_include
11 /test path/./to/../test_include.shader
15 gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
19 /test path/to3/../test_include.shader
23 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
27 #extension GL_ARB_shading_language_include: enable
29 #include "/test path/./to/../test_include.shader"
34 relative probe rgba (0.5, 0.5) (0.0, 1.0, 0.0, 1.0)