From 042d6e57281ef3109639755ee8a92cc38bba5a23 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 7 Jun 2013 19:42:51 +0900 Subject: [PATCH] Remove a couple of stale files. Missed these in the bsp related commit. --- libs/video/renderer/glsl/quakebsp.frag | 36 ------------------- libs/video/renderer/glsl/quaketrb.frag | 49 -------------------------- 2 files changed, 85 deletions(-) delete mode 100644 libs/video/renderer/glsl/quakebsp.frag delete mode 100644 libs/video/renderer/glsl/quaketrb.frag diff --git a/libs/video/renderer/glsl/quakebsp.frag b/libs/video/renderer/glsl/quakebsp.frag deleted file mode 100644 index 4dd8a0c7e..000000000 --- a/libs/video/renderer/glsl/quakebsp.frag +++ /dev/null @@ -1,36 +0,0 @@ -uniform sampler2D colormap; -uniform sampler2D texture; -uniform sampler2D lightmap; -uniform vec4 fog; - -varying vec2 tst; -varying vec2 lst; -varying vec4 color; - -float -sqr (float x) -{ - return x * x; -} - -vec4 -fogBlend (vec4 color) -{ - float f; - vec4 fog_color = vec4 (fog.rgb, 1.0); - - f = exp (-sqr (fog.a * gl_FragCoord.z / gl_FragCoord.w)); - return vec4 (mix (fog_color.rgb, color.rgb, f), color.a); -} - -void -main (void) -{ - float pix = texture2D (texture, tst).r; - float light = texture2D (lightmap, lst).r; - float col; - vec4 c; - - c = texture2D (colormap, vec2 (pix, light * 4.0)) * color; - gl_FragColor = fogBlend (c); -} diff --git a/libs/video/renderer/glsl/quaketrb.frag b/libs/video/renderer/glsl/quaketrb.frag deleted file mode 100644 index e019c557e..000000000 --- a/libs/video/renderer/glsl/quaketrb.frag +++ /dev/null @@ -1,49 +0,0 @@ -uniform sampler2D palette; -uniform sampler2D texture; -uniform float realtime; -uniform vec4 fog; - -varying vec2 tst; -varying vec4 color; - -const float SPEED = 20.0; -const float CYCLE = 128.0; -const float PI = 3.14159; -const float FACTOR = PI * 2.0 / CYCLE; -const vec2 BIAS = vec2 (1.0, 1.0); -const float SCALE = 8.0; - -float -sqr (float x) -{ - return x * x; -} - -vec4 -fogBlend (vec4 color) -{ - float f; - vec4 fog_color = vec4 (fog.rgb, 1.0); - - f = exp (-sqr (fog.a * gl_FragCoord.z / gl_FragCoord.w)); - return vec4 (mix (fog_color.rgb, color.rgb, f), color.a); -} - -vec2 -turb_st (vec2 st, float time) -{ - vec2 angle = st.ts * CYCLE / 2.0; - vec2 phase = vec2 (time, time) * SPEED; - return st + (sin ((angle + phase) * FACTOR) + BIAS) / SCALE; -} - -void -main (void) -{ - float pix; - vec2 st; - - st = turb_st (tst, realtime); - pix = texture2D (texture, st).r; - gl_FragColor = fogBlend (texture2D (palette, vec2 (pix, 0.0)) * color); -}