diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-08-24 02:28:15 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-08-24 02:37:20 +0200 |
commit | 91df2beee394afc17f379511007a7b26b911278f (patch) | |
tree | 2e6889d84dc52af54f81ebafaf089620c25503eb /src/video_core/host_shaders/opengl_present.frag | |
parent | gl_shader_util: Use std::string_view instead of star pointer (diff) | |
download | yuzu-91df2beee394afc17f379511007a7b26b911278f.tar yuzu-91df2beee394afc17f379511007a7b26b911278f.tar.gz yuzu-91df2beee394afc17f379511007a7b26b911278f.tar.bz2 yuzu-91df2beee394afc17f379511007a7b26b911278f.tar.lz yuzu-91df2beee394afc17f379511007a7b26b911278f.tar.xz yuzu-91df2beee394afc17f379511007a7b26b911278f.tar.zst yuzu-91df2beee394afc17f379511007a7b26b911278f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/host_shaders/opengl_present.frag | 10 |
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); +} |