From 4efd5c21f53ed47f3836115243029241f6e5b3ab Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 11 Jul 2008 10:17:09 +0000 Subject: [PATCH] fixed gamma correction --- vcg/complex/trimesh/update/color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/update/color.h b/vcg/complex/trimesh/update/color.h index 349ed03c..9708d06d 100644 --- a/vcg/complex/trimesh/update/color.h +++ b/vcg/complex/trimesh/update/color.h @@ -489,7 +489,7 @@ static int Gamma(UpdateMeshType &m, float gamma, const bool ProcessSelected=fals { if(!ProcessSelected || (*vi).IsS()) //if this vertex has been selected, do transormation { - (*vi).C() = ColorPow((*vi).C(),gamma); + (*vi).C() = ColorPow((*vi).C(), 1/gamma); ++counter; } }