-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
When setTransparentPickingEnabled is false (the default) with no skybox, transparent objects are still picked. The scene requires a skybox for the expected behaviour (i.e. that picking on a transparent object returns a null entity).
To Reproduce
Steps to reproduce the behavior:
- Load a glTF model with a transparent material (alphaMode: "BLEND") in gltf_viewer
- Hide the skybox via the UI
- Click on the transparent object
- The UI will show the name of the entity
Expected behavior
When setTransparentPickingEnabled is false and no skybox, clicking on a transparent object should return he null entity (if nothing opaque is behind it)
Screenshots
Picking transparent object with skybox (expected behaviour, nothing shows as picked):

Picking transparent object without skybox (unexpected behaviour, cube shows as picked):

Logs
N/A
Desktop (please complete the following information):
- OS: macOS 15.5
- Backend: metal
Additional context
Not sure if this is a bug or a documentation issue. Adding the following to this line
filament/filament/src/RenderPass.cpp
Line 787 in 675d8bc
curr->key |= select(filterTranslucentObjects && translucent);