From 60dc2e112214b623562744d0918a8dd43f635d59 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Jul 2014 13:01:35 +0200 Subject: [PATCH] - some shader fixes. --- wadsrc/static/shaders/glsl/stencil.fp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wadsrc/static/shaders/glsl/stencil.fp b/wadsrc/static/shaders/glsl/stencil.fp index 7cc579d9e..9e4afec04 100644 --- a/wadsrc/static/shaders/glsl/stencil.fp +++ b/wadsrc/static/shaders/glsl/stencil.fp @@ -2,12 +2,6 @@ in vec4 pixelpos; void main() { -#ifndef NO_DISCARD - // clip plane emulation for plane reflections. These are always perfectly horizontal so a simple check of the pixelpos's y coordinate is sufficient. - if (pixelpos.y > uClipHeight + 65536.0) discard; - if (pixelpos.y < uClipHeight - 65536.0) discard; -#endif - gl_FragColor = vec4(1.0); }