diff options
| author | Patrick | 2021-03-23 19:28:28 +0100 |
|---|---|---|
| committer | Patrick | 2021-03-23 19:28:28 +0100 |
| commit | a0fdc6d882a1755d0b0607ba3d9bb55e7f8ac006 (patch) | |
| tree | 82aab3828111378b6f0421aa58025b43f98f13a2 /shaders/vert_shadowmap.glsl | |
| parent | cedffd5cf24c1a3ed64161475c806c55135406be (diff) | |
| download | subsurface_scattering-a0fdc6d882a1755d0b0607ba3d9bb55e7f8ac006.tar.gz subsurface_scattering-a0fdc6d882a1755d0b0607ba3d9bb55e7f8ac006.zip | |
fix translucency, add gaussian blur to shader
Diffstat (limited to 'shaders/vert_shadowmap.glsl')
| -rw-r--r-- | shaders/vert_shadowmap.glsl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/shaders/vert_shadowmap.glsl b/shaders/vert_shadowmap.glsl new file mode 100644 index 0000000..50847bb --- /dev/null +++ b/shaders/vert_shadowmap.glsl @@ -0,0 +1,20 @@ +#version 330 core
+
+layout (location = 0) in vec3 pos;
+layout (location = 1) in vec3 normal;
+
+out vec3 FragPos;
+out vec3 LocalPos;
+out vec3 Normal;
+
+uniform mat4 model;
+uniform mat4 lightView;
+uniform mat4 projection;
+
+void main()
+{
+ gl_Position = projection * lightView * model * vec4(pos, 1.0);
+ FragPos = vec3(model * vec4(pos, 1));
+ LocalPos = pos;
+ Normal = normal;
+}
|
