diff options
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; +} |