diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-10-07 13:12:00 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-10-07 13:12:00 +0400 |
commit | d7a1b09f850da4d0a4a788e0c157356b7a17dd6c (patch) | |
tree | 2ce7b93ee3f5a3d0a45e16f7c15326e6f5fe5cea /source | |
parent | 14c57b6c783302a86175412d6f4abf70408f19d3 (diff) |
Cleanup to previous commit, we can reuse set_rgb instead of new function
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 2 | ||||
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index edb5b2ae654..75fed46f62a 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -739,7 +739,7 @@ static void shade_one_light(GPUShadeInput *shi, GPUShadeResult *shr, GPULamp *la i = is; GPU_link(mat, "shade_visifac", i, visifac, shi->refl, &i); - GPU_link(mat, "set_value_v3", GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol); + GPU_link(mat, "set_rgb", GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol); shade_light_textures(mat, lamp, &lcol); GPU_link(mat, "shade_mul_value_v3", GPU_dynamic_uniform(&lamp->dynenergy, GPU_DYNAMIC_LAMP_DYNENERGY, lamp->ob), lcol, &lcol); diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 1caa154fc13..23716c8105d 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -385,11 +385,6 @@ void set_value(float val, out float outval) outval = val; } -void set_value_v3(vec3 val, out vec3 outval) -{ - outval = val; -} - void set_rgb(vec3 col, out vec3 outcol) { outcol = col; |