From 958d0d4236b1cfa600a7f36f6bdc51fdd0d98a97 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Sat, 7 Dec 2019 12:35:07 +0000 Subject: Shader Nodes: Add Interpolation modes to Map Range node Modes: Linear interpolation (default), stepped linear, smoothstep and smootherstep. This also includes an additional option for the **Clamp node** to switch between **Min Max** (default) and **Range** mode. This was needed to allow clamping when **To Max** is less than **To Min**. Reviewed By: JacquesLucke, brecht Differential Revision: https://developer.blender.org/D5827 --- source/blender/gpu/intern/gpu_material_library.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/gpu/intern/gpu_material_library.h') diff --git a/source/blender/gpu/intern/gpu_material_library.h b/source/blender/gpu/intern/gpu_material_library.h index 3a38eb5c600..08c36e24920 100644 --- a/source/blender/gpu/intern/gpu_material_library.h +++ b/source/blender/gpu/intern/gpu_material_library.h @@ -316,7 +316,7 @@ static GPUMaterialLibrary gpu_shader_material_mapping_library = { static GPUMaterialLibrary gpu_shader_material_map_range_library = { .code = datatoc_gpu_shader_material_map_range_glsl, - .dependencies = {NULL}, + .dependencies = {&gpu_shader_material_math_util_library, NULL}, }; static GPUMaterialLibrary gpu_shader_material_math_library = { -- cgit v1.2.3