diff options
author | tfarley <tfarleygithub@gmail.com> | 2016-01-04 00:46:54 +0100 |
---|---|---|
committer | tfarley <tfarleygithub@gmail.com> | 2016-01-21 03:57:59 +0100 |
commit | f53dbafdae6b6ca8ab718d2299437df469441389 (patch) | |
tree | ddf1b234c2440f8ade62be48ddf1e32ee22c8801 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Merge pull request #1327 from Subv/unmap_memblock (diff) | |
download | yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar.gz yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar.bz2 yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar.lz yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar.xz yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.tar.zst yuzu-f53dbafdae6b6ca8ab718d2299437df469441389.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_gen.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 38de5d469..22022f7f4 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -334,6 +334,7 @@ layout (std140) uniform shader_data { vec4 const_color[NUM_TEV_STAGES]; vec4 tev_combiner_buffer_color; int alphatest_ref; + float depth_offset; }; uniform sampler2D tex[3]; @@ -360,7 +361,8 @@ void main() { out += ") discard;\n"; } - out += "color = last_tex_env_out;\n}"; + out += "color = last_tex_env_out;\n"; + out += "gl_FragDepth = gl_FragCoord.z + depth_offset;\n}"; return out; } |