From 6b3507f0a34ac2c2c20ab795ceec7b381c729266 Mon Sep 17 00:00:00 2001 From: Thomas Diewald Date: Mon, 18 Dec 2017 14:32:08 +0100 Subject: [PATCH] FlowFieldParticles - removed unused uniform (https://github.com/diwi/PixelFlow/issues/21) --- .../particles_display_points.glsl | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/com/thomasdiewald/pixelflow/glsl/FlowFieldParticles/particles_display_points.glsl b/src/com/thomasdiewald/pixelflow/glsl/FlowFieldParticles/particles_display_points.glsl index 258a246..466bf9e 100644 --- a/src/com/thomasdiewald/pixelflow/glsl/FlowFieldParticles/particles_display_points.glsl +++ b/src/com/thomasdiewald/pixelflow/glsl/FlowFieldParticles/particles_display_points.glsl @@ -54,23 +54,23 @@ void main(){ #if (SHADER_FRAG == 1) -#define INVERT 0 -#define STEPS 2 -uniform vec4 PALLETTE[STEPS] = { - vec4(0.25, 0.50, 1.00, 1.0), - vec4(1.00, 0.50, 0.25, 1.0) -}; - -vec4 getShading(float val){ - val = clamp(val, 0.0, 0.99999); -#if INVERT - val = 1.0 - val; -#endif - float lum_steps = val * (STEPS-1); - float frac = fract(lum_steps); - int id = int(floor(lum_steps)); - return mix(PALLETTE[id], PALLETTE[id+1], frac); -} +// #define INVERT 0 +// #define STEPS 2 +// uniform vec4 PALLETTE[STEPS] = { + // vec4(0.25, 0.50, 1.00, 1.0), + // vec4(1.00, 0.50, 0.25, 1.0) +// }; + +// vec4 getShading(float val){ + // val = clamp(val, 0.0, 0.99999); +// #if INVERT + // val = 1.0 - val; +// #endif + // float lum_steps = val * (STEPS-1); + // float frac = fract(lum_steps); + // int id = int(floor(lum_steps)); + // return mix(PALLETTE[id], PALLETTE[id+1], frac); +// } out vec4 out_frag;