diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-10 19:14:14 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-10 19:14:14 (GMT) |
commit | b7bad543e14945a84d58a205ff30038db0b87ca0 (patch) | |
tree | 2f31e826b26c3806594283cd10d40420b187b596 /Smoke/colormap.c | |
parent | 890f2eba8e594f345600b6e97de4d35d22b9b31f (diff) | |
download | 2iv35-b7bad543e14945a84d58a205ff30038db0b87ca0.zip 2iv35-b7bad543e14945a84d58a205ff30038db0b87ca0.tar.gz 2iv35-b7bad543e14945a84d58a205ff30038db0b87ca0.tar.bz2 |
gui voor grid-smoke, resetten van scaling en clamping and fixed the motha-focking rescaling bug
Diffstat (limited to 'Smoke/colormap.c')
-rw-r--r-- | Smoke/colormap.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Smoke/colormap.c b/Smoke/colormap.c index c7b5f61..e4a4901 100644 --- a/Smoke/colormap.c +++ b/Smoke/colormap.c @@ -26,12 +26,10 @@ static int colormap_scaling = FALSE; static int colormap_clamping = FALSE; static float colormap_scale_min = 0.0f; - static float colormap_scale_max = 1.0f; static float colormap_clamp_min = 0.0f; - -static float colormap_clamp_max = 0.9999f; +static float colormap_clamp_max = 1.0f; static int colormap_autoscaling = FALSE; @@ -185,3 +183,15 @@ struct color4f colormap_get_color(float value) return return_value; } + +void renderer_reset_scaling(void) +{ + colormap_scale_min = 0.0f; + colormap_scale_max = 1.0f; +} + +void renderer_reset_clamping(void) +{ + colormap_clamp_min = 0.0f; + colormap_clamp_max = 1.0f; +} |