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