Commit 889db8c7 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

[Fix] Correction of an incorrect check for above hemisphere sample point

when doing the conversion with interpolation.
parent 3ae862f9
......@@ -248,7 +248,7 @@ static void convert_with_interpolation(ptr<data> d_in, ptr<data> d_out)
// Check if the output configuration is below the hemisphere when
// converted to cartesian coordinates. Note that this prevent from
// converting BTDF data.
if(cart[2] >= 0.0 || cart[5] >= 0.0) {
if(cart[2] >= 0.0 && cart[5] >= 0.0) {
params::convert(&cart[0], params::CARTESIAN,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment