diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-26 10:54:29 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-26 10:58:17 +0100 |
commit | f8af4c44d17b94ab814f1784060388afd7a24e03 (patch) | |
tree | e0c8e06c209fe964b03caae362169facecd3c949 /cwd/assets/altcraft/shaders/vert/sky.vs | |
parent | Implemented new Shader class (diff) | |
download | AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar.gz AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar.bz2 AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar.lz AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar.xz AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.tar.zst AltCraft-f8af4c44d17b94ab814f1784060388afd7a24e03.zip |
Diffstat (limited to 'cwd/assets/altcraft/shaders/vert/sky.vs')
-rw-r--r-- | cwd/assets/altcraft/shaders/vert/sky.vs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/shaders/vert/sky.vs b/cwd/assets/altcraft/shaders/vert/sky.vs new file mode 100644 index 0000000..983e1f3 --- /dev/null +++ b/cwd/assets/altcraft/shaders/vert/sky.vs @@ -0,0 +1,17 @@ +#version 330 core + +uniform mat4 view; +uniform mat4 projection; +uniform mat4 model; + +layout (location = 0) in vec3 position; +layout (location = 1) in vec2 uvPosition; + +out vec2 uvPos; +out vec3 pos; + +void main(){ + uvPos = uvPosition; + pos = position; + gl_Position = projection*view*model*vec4(position,1); +}
\ No newline at end of file |