Skip to content

Commit

Permalink
Disable transparent pickable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
show50726 authored and pixelflinger committed Oct 17, 2024
1 parent 25b37d3 commit 23d1329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filament/src/details/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ void FRenderer::renderJob(RootArenaScope& rootArenaScope, FView& view) {
.picking = view.hasPicking() && !view.isTransparentPickable()
});
auto picking = picking_;

if (view.hasPicking()) {
if (view.isTransparentPickable()) {
struct PickingRenderPassData {
Expand Down
2 changes: 1 addition & 1 deletion filament/src/details/View.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class FView : public View {
Viewport mViewport;
bool mCulling = true;
bool mFrontFaceWindingInverted = false;
bool mIsTransparentPickable = true;
bool mIsTransparentPickable = false;

FRenderTarget* mRenderTarget = nullptr;

Expand Down

0 comments on commit 23d1329

Please sign in to comment.