Changed FFT scaling to use native code and requests

This commit is contained in:
Jarcode
2018-01-12 17:04:03 -08:00
parent 96f40d089e
commit 15ffe975cc
6 changed files with 20 additions and 8 deletions

View File

@@ -91,9 +91,6 @@ void render_side(in sampler1D tex, float idx) {
s *= clamp((abs((screen.x / 2) - gl_FragCoord.x) / screen.x) * 48, 0.0F, 1.0F);
s *= clamp((min(gl_FragCoord.x, screen.x - gl_FragCoord.x) / screen.x) * 48, 0.0F, 1.0F);
/* amplify higher frequencies */
s *= 1 + BDIST;
/* and finally set fragment color if we are in range */
#if INVERT > 0
float pos = float(screen.y) - gl_FragCoord.y;