aboutsummaryrefslogtreecommitdiff
path: root/shaders/skybox.frag
blob: f5f8edb3298e3502d16bfd182215df25300f57bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#version 330 core

// in vec3 tex_coord;

// out vec4 final_col;

// uniform samplerCube skybox;

// void main() {
// 	// final_col = texture(skybox, tex_coord);
// 	final_col = vec4(0, 0, 0, 1);
// }

in vec3 tex_coords;

out vec4 final_col;

uniform samplerCube tex;

void main() {
	final_col = texture(tex, tex_coords);
	// final_col = vec4(1, 0, 1, 1);
}