Skip to content

Commit

Permalink
Setting background pixel depth to 1 instead of 1 - AI_EPSILON. (#386)
Browse files Browse the repository at this point in the history
Fixes #385
  • Loading branch information
sirpalee committed Apr 17, 2020
1 parent 4b5118f commit cf6d100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render_delegate/nodes/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ driver_process_bucket
} else {
for (auto i = decltype(pixelCount){0}; i < pixelCount; i += 1) {
if (ids[i] == -1) {
depth[i] = 1.0f - AI_EPSILON;
depth[i] = 1.0f;
} else {
const auto p = driverData->projMtx.Transform(driverData->viewMtx.Transform(in[i]));
depth[i] = std::max(-1.0f, std::min(1.0f, p[2]));
Expand Down

0 comments on commit cf6d100

Please sign in to comment.