From 7ec62c58e9560fc961ec3522490e40ad1d259c72 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 16:17:23 +1000 Subject: wip skybox. make geometry owned and copied onto Mesh --- assets/shaders/skybox.frag | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 assets/shaders/skybox.frag (limited to 'assets/shaders/skybox.frag') diff --git a/assets/shaders/skybox.frag b/assets/shaders/skybox.frag new file mode 100644 index 0000000..242477d --- /dev/null +++ b/assets/shaders/skybox.frag @@ -0,0 +1,11 @@ +#version 410 core + +out vec4 FragColor; + +in vec3 TexCoords; + +uniform samplerCube cubemap; + +void main() { + FragColor = texture(cubemap, TexCoords); +} -- cgit v1.2.3-70-g09d2