diff options
| author | Joursoir <chat@joursoir.net> | 2021-04-14 11:29:37 +0000 |
|---|---|---|
| committer | Joursoir <chat@joursoir.net> | 2021-04-14 11:29:37 +0000 |
| commit | dad534b3c4031ceab3f6f13b1efd512a6cef0131 (patch) | |
| tree | 8a1bf0aed742fa6cec976242083f5e8ab433006b /skybox.frag | |
| parent | 7bfd449c60dcbd9a75073b8e024b11e7b63b01e8 (diff) | |
| download | space-simulator-dad534b3c4031ceab3f6f13b1efd512a6cef0131.tar.gz space-simulator-dad534b3c4031ceab3f6f13b1efd512a6cef0131.tar.bz2 space-simulator-dad534b3c4031ceab3f6f13b1efd512a6cef0131.zip | |
add shaders for skybox
Diffstat (limited to 'skybox.frag')
| -rw-r--r-- | skybox.frag | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/skybox.frag b/skybox.frag new file mode 100644 index 0000000..273fa9c --- /dev/null +++ b/skybox.frag @@ -0,0 +1,11 @@ +#version 330 core + +in vec3 tex_coords; +out vec4 color; + +uniform samplerCube skybox; + +void main() +{ + color = texture(skybox, tex_coords); +} |
