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; } }