1#ifdef GL_ES
2precision mediump float;
3#endif
4
5uniform samplerCube u_environmentMapTexture;
6
7varying vec4 v_position;
8
9void main() {
10 vec3 center = vec3(0.0);
11 vec3 dir = vec3(v_position) - center;
12 gl_FragColor = textureCube(u_environmentMapTexture, dir);
13}