diff options
author | ccolin | 2020-12-28 17:36:45 +0100 |
---|---|---|
committer | ccolin | 2020-12-28 17:36:45 +0100 |
commit | f3a34665978729ef65010ac2a4a9408e27d5bf3e (patch) | |
tree | e8f4d6f2402c9b7113e33684f64b82a98d990313 /shaders/skybox.frag | |
parent | ef37119f4e94c83a6357ebc0b94a39e4e53b20d7 (diff) |
skybox
Diffstat (limited to 'shaders/skybox.frag')
-rw-r--r-- | shaders/skybox.frag | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/shaders/skybox.frag b/shaders/skybox.frag new file mode 100644 index 0000000..f5f8edb --- /dev/null +++ b/shaders/skybox.frag @@ -0,0 +1,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); +} |