[require] GLSL >= 1.10 [vertex shader] uniform samplerCube unf; void main() { vec4 v = textureCube(unf, vec3(0.6,-0.6,1.0)); gl_FrontColor.g = v.y; gl_Position = ftransform(); } [test]