diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-16 15:32:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-16 15:32:10 +0300 |
commit | 882d85a96827cb50d1fc4a2ac1d63b902aab8f86 (patch) | |
tree | d9c779a282ac712ed4a522ad2380c72c1668fa04 /source/blender/gpu/intern/gpu_material.c | |
parent | 4da3c4b9d5ede4369467165cb9f31eee4385a353 (diff) |
Patch from Banlu Kemiyatorn
replace VecMulf(var,-1) with new VecNegf(var) function.
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 46df003cbbc..87703bc73bf 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -306,7 +306,7 @@ void GPU_material_bind_uniforms(GPUMaterial *material, float obmat[][4], float v if(material->dynproperty & DYN_LAMP_VEC) { VECCOPY(lamp->dynvec, lamp->vec); Normalize(lamp->dynvec); - VecMulf(lamp->dynvec, -1.0f); + VecNegf(lamp->dynvec); Mat4Mul3Vecfl(viewmat, lamp->dynvec); } |