fixed gamma correction

This commit is contained in:
Paolo Cignoni 2008-07-11 10:17:09 +00:00
parent c0f5310cde
commit 4efd5c21f5
1 changed files with 1 additions and 1 deletions

View File

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