fixed gamma correction
This commit is contained in:
parent
c0f5310cde
commit
4efd5c21f5
|
@ -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
|
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;
|
++counter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue