treesummaryrefslogcommitdiff
path: root/shaders/ts_vert_irradiance.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/ts_vert_irradiance.glsl')
-rw-r--r--shaders/ts_vert_irradiance.glsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/shaders/ts_vert_irradiance.glsl b/shaders/ts_vert_irradiance.glsl
new file mode 100644
index 0000000..afe5645
--- /dev/null
+++ b/shaders/ts_vert_irradiance.glsl
@@ -0,0 +1,19 @@
+#version 330 core
+
+layout (location = 0) in vec3 pos;
+layout (location = 1) in vec3 normal;
+layout (location = 2) in vec2 uv;
+
+out vec3 Normal;
+out vec3 FragPos;
+
+uniform mat4 model;
+uniform mat4 view;
+uniform mat4 projection;
+
+void main()
+{
+ FragPos = vec3(model * vec4(pos, 1.0));
+ gl_Position = vec4(uv * 2.0 - 1.0, 0.0, 1.0);
+ Normal = normal;
+}