uniform samplerCube Env; varying vec3 dir; void main(){ gl_FragColor = textureCube(Env, normalize(dir)); //gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); }