aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-07 15:54:11 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-07 15:54:11 +0100
commit004f87d658fa8c5c84eccb26f09bdf55b0de8943 (patch)
tree95ebe5674bd1705a87e8ec0c674aab72bd592512
parent2732933ab21d2a7b43466a0c563182bc29611022 (diff)
VoronoiSplat: added some padding to color mapping; needs more work
-rw-r--r--voronoisplat.cpp2
1 files changed, 1 insertions, 1 deletions
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() {