Fixed bug of radiosity algorithm which is caused by a mistaken operator precedence

This commit is contained in:
yvt 2013-11-11 01:16:39 +09:00
parent 884f54fccc
commit 2c530e6eec

View File

@ -227,7 +227,7 @@ namespace spades {
// if true, this is negative-y faced plane
// if false, this is negative-z faced plane
bool isSide = pixel & 0x80 != 0;
bool isSide = (pixel & 0x80) != 0;
// direction dependent process
Vector3 center; // center of face