diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-19 07:48:37 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-19 08:28:15 +0100 |
commit | 8ab6abaae252050bf0ee03cd2a988c0e4e502718 (patch) | |
tree | 6c96eb7314da49db1d2ac5a142623bc443e3ee33 /cwd/assets/altcraft/shaders/vert | |
parent | Optimized entities rendering (diff) | |
download | AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar.gz AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar.bz2 AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar.lz AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar.xz AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.tar.zst AltCraft-8ab6abaae252050bf0ee03cd2a988c0e4e502718.zip |
Diffstat (limited to 'cwd/assets/altcraft/shaders/vert')
-rw-r--r-- | cwd/assets/altcraft/shaders/vert/sky.vs | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/sky.vs b/cwd/assets/altcraft/shaders/vert/sky.vs index 983e1f3..0ab261c 100644 --- a/cwd/assets/altcraft/shaders/vert/sky.vs +++ b/cwd/assets/altcraft/shaders/vert/sky.vs @@ -1,17 +1,13 @@ #version 330 core -uniform mat4 view; -uniform mat4 projection; -uniform mat4 model; +in vec3 position; -layout (location = 0) in vec3 position; -layout (location = 1) in vec2 uvPosition; - -out vec2 uvPos; out vec3 pos; -void main(){ - uvPos = uvPosition; +uniform mat4 projView; +uniform mat4 model; + +void main() { pos = position; - gl_Position = projection*view*model*vec4(position,1); -}
\ No newline at end of file + gl_Position = projView * model * vec4(position, 1); +} |