Fixed bug of radiosity algorithm which is caused by a mistaken operator precedence
This commit is contained in:
parent
884f54fccc
commit
2c530e6eec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user