Skip to content

Use a depthBuffer for picking #2682

@jailln

Description

@jailln

IMO the correct solution is to use a depth buffer (or even stencil buffer) and not a color buffer. Then any issue with lighting is made irrelevant.
Rendering the whole scene will not solve the issue because there may still be objects with the same color as the clear color. It will only make it less likely. (Rendering the whole scene may also reduce performance.)

Originally posted by @Neptilo in #2678

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions