diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-27 17:08:58 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-27 17:08:58 +0100 |
commit | c905ede556c892d39fd69d3945026ba244567ce9 (patch) | |
tree | 86b0d1f5f3ba47358bfb3a89c1dba9ae9a344a39 /cwd/assets/altcraft/shaders/frag/light.fs | |
parent | Added ShaderParametersBuffer to GalOgl (diff) | |
download | AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar.gz AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar.bz2 AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar.lz AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar.xz AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.tar.zst AltCraft-c905ede556c892d39fd69d3945026ba244567ce9.zip |
Diffstat (limited to '')
-rw-r--r-- | cwd/assets/altcraft/shaders/frag/light.fs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cwd/assets/altcraft/shaders/frag/light.fs b/cwd/assets/altcraft/shaders/frag/light.fs index 6d05884..07eb3ec 100644 --- a/cwd/assets/altcraft/shaders/frag/light.fs +++ b/cwd/assets/altcraft/shaders/frag/light.fs @@ -10,9 +10,15 @@ uniform sampler2D addColor; uniform sampler2D light; uniform sampler2D depthStencil; -uniform float dayTime; uniform int renderBuff; +layout (std140) uniform Globals { + mat4 projView; + uvec2 viewportSize; + float globalTime; + float dayTime; +}; + void main() { vec4 c = texture(color, uv); vec4 n = texture(normal, uv); |