diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-25 04:46:05 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-25 04:46:05 +0100 |
commit | acd89cf669a5fb18668f5cb5762a971b0ba42801 (patch) | |
tree | 1eb2c281036a7d0757be00ae3844c7da0199e659 /cwd | |
parent | Merge pull request #30 from uis246/iss29 (diff) | |
download | AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar.gz AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar.bz2 AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar.lz AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar.xz AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.tar.zst AltCraft-acd89cf669a5fb18668f5cb5762a971b0ba42801.zip |
Diffstat (limited to 'cwd')
-rw-r--r-- | cwd/shaders/fbo.fs | 11 | ||||
-rw-r--r-- | cwd/shaders/fbo.vs | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/cwd/shaders/fbo.fs b/cwd/shaders/fbo.fs new file mode 100644 index 0000000..df624b3 --- /dev/null +++ b/cwd/shaders/fbo.fs @@ -0,0 +1,11 @@ +#version 330 core + +out vec4 FragColor; +in vec2 TexCoords; + +uniform sampler2D inputTexture; + +void main() +{ + FragColor = texture(inputTexture, TexCoords); +}
\ No newline at end of file diff --git a/cwd/shaders/fbo.vs b/cwd/shaders/fbo.vs new file mode 100644 index 0000000..e1e8966 --- /dev/null +++ b/cwd/shaders/fbo.vs @@ -0,0 +1,11 @@ +#version 330 core +layout (location = 0) in vec2 Pos; +layout (location = 1) in vec2 TextureCoords; + +out vec2 TexCoords; + +void main() +{ + gl_Position = vec4(Pos.x, Pos.y, 0.0, 1.0); + TexCoords = TextureCoords; +}
\ No newline at end of file |