Skip to content

Commit

Permalink
Merge pull request #945 from Unity-Technologies/hotfix-bw-scaling
Browse files Browse the repository at this point in the history
Fix scaling of greyscale visual obsrrvations
  • Loading branch information
awjuliani authored Jun 29, 2018
2 parents 4329fbe + b0b5368 commit 168b8e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public void OnInspector()
{
resultTemp[b * hwp + h * wp + w * pixels] =
(currentPixel.r + currentPixel.g + currentPixel.b)
/ 3;
/ 3f / 255.0f;
}
}
}
Expand Down

0 comments on commit 168b8e2

Please sign in to comment.