Skip to content

Comments

fix(picking): make object picking robust by comparing alpha instead of colors#2705

Open
Neptilo wants to merge 1 commit intoiTowns:masterfrom
Neptilo:fix/depth-picking
Open

fix(picking): make object picking robust by comparing alpha instead of colors#2705
Neptilo wants to merge 1 commit intoiTowns:masterfrom
Neptilo:fix/depth-picking

Conversation

@Neptilo
Copy link
Contributor

@Neptilo Neptilo commented Feb 23, 2026

Description

Make object picking more robust by comparing alpha instead of colors. This fixes #2682.

Motivation and Context

When using the picking on a glTF, we didn't get any result.
This was the case when the background color is left at the default value (black)

@Neptilo Neptilo requested a review from Desplandis February 23, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a depthBuffer for picking

1 participant