VoxelEngine/res/shaders/background.glslf
2023-11-28 16:13:49 +03:00

10 lines
151 B
GLSL

in vec3 v_coord;
out vec4 f_color;
uniform samplerCube u_cubemap;
void main(){
vec3 dir = normalize(v_coord);
f_color = texture(u_cubemap, dir);
}