aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host_shaders/opengl_present.frag
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-26 22:57:39 -0400
committerGitHub <noreply@github.com>2020-08-26 22:57:39 -0400
commit1bb8c27a70657eb36cc6b4860f9285cbff736a00 (patch)
tree5fbdf8680a0fe31b95c1f6be00fdb5548086011e /src/video_core/host_shaders/opengl_present.frag
parent1e2a92918b0dea7867c5fcb8adba1a139afe6c22 (diff)
parent91df2beee394afc17f379511007a7b26b911278f (diff)
Merge pull request #4569 from ReinUsesLisp/glsl-cmake
video_core/host_shaders: Add CMake integration for string shaders
Diffstat (limited to 'src/video_core/host_shaders/opengl_present.frag')
-rw-r--r--src/video_core/host_shaders/opengl_present.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/host_shaders/opengl_present.frag b/src/video_core/host_shaders/opengl_present.frag
new file mode 100644
index 000000000..8a4cb024b
--- /dev/null
+++ b/src/video_core/host_shaders/opengl_present.frag
@@ -0,0 +1,10 @@
+#version 430 core
+
+layout (location = 0) in vec2 frag_tex_coord;
+layout (location = 0) out vec4 color;
+
+layout (binding = 0) uniform sampler2D color_texture;
+
+void main() {
+ color = vec4(texture(color_texture, frag_tex_coord).rgb, 1.0f);
+}