m2-ar-projet/shaders/skybox.frag

24 lines
359 B
GLSL
Raw Normal View History

2020-12-28 17:36:45 +01:00
#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);
}