[require] GLSL >= 1.10 [vertex shader] uniform sampler3D unf; void main() { vec4 v = texture3D(unf, vec3(0.8,0.8,0.0)); gl_FrontColor.g = v.y; gl_Position = ftransform(); } [test]