precision mediump float; uniform samplerCube Texture; varying vec3 dir; void main(){ gl_FragColor = textureCube(Texture, normalize(dir)); }