Skip to content

Use engine picker.#383

Merged
slimbuck merged 2 commits into
mainfrom
picker-dev
Jun 16, 2026
Merged

Use engine picker.#383
slimbuck merged 2 commits into
mainfrom
picker-dev

Conversation

@slimbuck

Copy link
Copy Markdown
Member

No description provided.

@slimbuck slimbuck requested a review from Copilot June 16, 2026 10:30
@slimbuck slimbuck self-assigned this Jun 16, 2026
@slimbuck slimbuck added the enhancement New feature or request label Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the custom depth-buffer based picking implementation with PlayCanvas’ built-in engine Picker, simplifying the picking pipeline used by the viewer (e.g., for double-tap camera refocus).

Changes:

  • Removed the custom render-target + shader-chunk depth packing picker implementation.
  • Added an engine Picker instance that prepares the scene and queries a world point asynchronously.
  • Introduced a fixed downscale factor (pickerScale = 0.25) and clamped normalized inputs to valid pixel coordinates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@slimbuck slimbuck merged commit ac7fe41 into main Jun 16, 2026
2 checks passed
@slimbuck slimbuck deleted the picker-dev branch June 16, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants