Files
Mindustry/core/assets/shaders/cubemap.frag
T

11 lines
175 B
GLSL

#ifdef GL_ES
precision mediump float;
#endif
varying vec3 v_texCoords;
uniform samplerCube u_cubemap;
void main(){
gl_FragColor = textureCube(u_cubemap, v_texCoords);
}