diff options
author | wwylele <wwylele@gmail.com> | 2017-08-17 09:46:59 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-08-21 07:03:07 +0200 |
commit | 1eca380886b5028e027f1380c04f221ac94ed47d (patch) | |
tree | 2e6b15be4c3fa915f59c80f04395cad09859394c /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Merge pull request #2872 from wwylele/sw-geo-factor (diff) | |
download | yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar.gz yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar.bz2 yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar.lz yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar.xz yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.tar.zst yuzu-1eca380886b5028e027f1380c04f221ac94ed47d.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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index ae67aab05..0dae4b91e 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -1196,6 +1196,8 @@ void main() { normquat = vert_normquat; view = vert_view; gl_Position = vec4(vert_position.x, vert_position.y, -vert_position.z, vert_position.w); + gl_ClipDistance[0] = -vert_position.z; // fixed PICA clipping plane z <= 0 + // TODO (wwylele): calculate gl_ClipDistance[1] from user-defined clipping plane } )"; |