diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-21 09:56:28 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-21 10:26:47 +0100 |
commit | aafc423a7298b0fc595c0209480474dc50c277f0 (patch) | |
tree | 06549c939c99cfd8a6f3390362eea2a5c5b88b9e /cwd/assets/altcraft/shaders/frag/light.fs | |
parent | Fixed some broken graphics features (diff) | |
download | AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar.gz AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar.bz2 AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar.lz AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar.xz AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.tar.zst AltCraft-aafc423a7298b0fc595c0209480474dc50c277f0.zip |
Diffstat (limited to '')
-rw-r--r-- | cwd/assets/altcraft/shaders/frag/light.fs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/shaders/frag/light.fs b/cwd/assets/altcraft/shaders/frag/light.fs new file mode 100644 index 0000000..480e265 --- /dev/null +++ b/cwd/assets/altcraft/shaders/frag/light.fs @@ -0,0 +1,16 @@ +#version 330 core + +out vec4 fragColor; + +in vec2 uv; + +uniform sampler2D color; +uniform sampler2D normal; +uniform sampler2D depthStencil; + +void main() { + vec4 c = texture(color, uv); + vec4 n = texture(normal, uv); + float d = texture(depthStencil, uv).r; + fragColor = vec4(c.r, n.r, d - 0.3f, 1.0f); +} |