diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-07 15:54:11 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-07 15:54:11 +0100 |
commit | 004f87d658fa8c5c84eccb26f09bdf55b0de8943 (patch) | |
tree | 95ebe5674bd1705a87e8ec0c674aab72bd592512 | |
parent | 2732933ab21d2a7b43466a0c563182bc29611022 (diff) |
VoronoiSplat: added some padding to color mapping; needs more work
-rw-r--r-- | voronoisplat.cpp | 2 |
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() { |