1 # Test GL_TEXTURE_1D_ARRAY texture with four layers
8 varying vec4 texcoords;
10 gl_Position = gl_Vertex;
11 texcoords = (gl_Vertex + 1.0) / 2.0;
16 #extension GL_EXT_texture_array : enable
17 varying vec4 texcoords;
18 uniform sampler1DArray tex;
23 vec2 p = vec2(texcoords.x, layer);
24 gl_FragColor = texture1DArray(tex, p);
29 texture rgbw 1DArray 0 ( 64 , 4 )
33 relative probe rgba (0.5, 0.5) (1.0, 0.0, 0.0, 1.0)
37 relative probe rgba (0.5, 0.5) (0.0, 1.0, 0.0, 1.0)
41 relative probe rgba (0.5, 0.5) (0.0, 0.0, 1.0, 1.0)
45 relative probe rgba (0.5, 0.5) (1.0, 1.0, 1.0, 1.0)