Skip to content

Commit

Permalink
fix render to depth image on Apple Retina displays
Browse files Browse the repository at this point in the history
  • Loading branch information
rxba committed Oct 6, 2024
1 parent 5f148f2 commit 4bcd9d3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ void FilamentRenderToBuffer::CopySettings(const View* view) {
// overhead and the depth buffer is discarded when post-processing is
// enabled so the returned image is all 0s.
view_->ConfigureForColorPicking();
// Set shadowing to true as there is a pixel coordinate scaling
// issue on Apple Retina displays that results in quarter size depth
// images if shadowing is disabled.
view_->SetShadowing(true, View::ShadowType::kPCF);
}
}

Expand Down

0 comments on commit 4bcd9d3

Please sign in to comment.