From 004f87d658fa8c5c84eccb26f09bdf55b0de8943 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 7 Jan 2016 15:54:11 +0100 Subject: VoronoiSplat: added some padding to color mapping; needs more work --- voronoisplat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voronoisplat.cpp b/voronoisplat.cpp index a0ac922..62de98f 100644 --- a/voronoisplat.cpp +++ b/voronoisplat.cpp @@ -110,7 +110,7 @@ uniform float rad_max; layout (location = 0) out vec4 fragColor; vec3 getRGB(float value) { - return texture(colormap, vec2(mix(0, 1, value), 0)).rgb; + return texture(colormap, vec2(mix(0.005, 0.995, value), 0)).rgb; } void main() { -- cgit v1.2.3