#version 150


uniform sampler3D texture0;
uniform float z;


in vec3 position;


out vec4 frag_color;


void main()
{
    frag_color = texture(texture0, (vec3(position.xy, z) + 1) / 2);
}