diff options
Diffstat (limited to 'source/lessons/uniform buffer objects/shaders/cubemap.fs.glsl')
-rw-r--r-- | source/lessons/uniform buffer objects/shaders/cubemap.fs.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lessons/uniform buffer objects/shaders/cubemap.fs.glsl b/source/lessons/uniform buffer objects/shaders/cubemap.fs.glsl new file mode 100644 index 0000000..72dfe4c --- /dev/null +++ b/source/lessons/uniform buffer objects/shaders/cubemap.fs.glsl @@ -0,0 +1,9 @@ +#version 330 core + +in vec3 TexCoords; +uniform samplerCube skybox; +out vec4 FragColor; + +void main() { + FragColor = texture(skybox, TexCoords); +}; |