1 # Test GL_TEXTURE_1D_ARRAY texture with just one layer
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 , 1 )
31 # layer=12 should get clamped to zero
32 uniform float layer 12
34 relative probe rgba (0.5, 0.5) (1.0, 0.0, 0.0, 1.0)