diff options
| author | hachem <im@hachem.wtf> | 2025-08-25 11:28:49 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-25 11:28:49 +0200 |
| commit | 86df8b19063f73b7803daaa1e5b21da33ac976ed (patch) | |
| tree | ee274484bd1ca6ba8eba196b70abe9f2958c8c81 /Assets/Shaders/TexturedQuad.glsl | |
| parent | 59b917dcb36c227182da0c55a99acbcf74f7563d (diff) | |
[fix]: QOL improvements
Diffstat (limited to 'Assets/Shaders/TexturedQuad.glsl')
| -rw-r--r-- | Assets/Shaders/TexturedQuad.glsl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Assets/Shaders/TexturedQuad.glsl b/Assets/Shaders/TexturedQuad.glsl new file mode 100644 index 0000000..95f433d --- /dev/null +++ b/Assets/Shaders/TexturedQuad.glsl @@ -0,0 +1,28 @@ +#type vertex + +#version 330 core + +layout (location = 0) in vec2 a_Pos; +layout (location = 1) in vec2 a_TexCoord; + +out vec2 v_TexCoord; + +void main() +{ + gl_Position = vec4(a_Pos, 0.0, 1.0); + v_TexCoord = a_TexCoord; +} + +#type fragment + +#version 330 core + +in vec2 v_TexCoord; +out vec4 o_FragColor; + +uniform sampler2D u_ScreenTexture; + +void main() +{ + o_FragColor = texture(u_ScreenTexture, v_TexCoord); +} |
