Skip to content

Update deps#322

Merged
slimbuck merged 1 commit intomainfrom
latest
Apr 24, 2025
Merged

Update deps#322
slimbuck merged 1 commit intomainfrom
latest

Conversation

@slimbuck
Copy link
Copy Markdown
Member

Update dependencies and fix WebGPU picking.

@slimbuck slimbuck added the bug Something isn't working label Apr 24, 2025
@slimbuck slimbuck requested review from a team and Copilot April 24, 2025 15:12
@slimbuck slimbuck self-assigned this Apr 24, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates dependencies and addresses issues with WebGPU picking.

  • Adjusts the y-coordinate computation for WebGL2 in the picking logic.
  • Introduces an 'immediate' flag to the colorBuffer.read call to promptly trigger read operations.
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (2)

src/picker.ts:39

  • Verify that the inversion of the y coordinate using 'height - y - 1' for WebGL2 aligns with the intended picking behavior; ensure that this calculation deals with coordinate system differences correctly.
const pixels = await picker.renderTarget.colorBuffer.read(x, graphicsDevice.isWebGL2 ? height - y - 1 : y, 1, 1, {

src/picker.ts:41

  • Ensure that the addition of 'immediate: true' is compatible with the existing renderTarget.read usage and does not introduce unexpected behavior in other rendering modes.
immediate: true

@slimbuck slimbuck merged commit 641adbe into main Apr 24, 2025
2 checks passed
@slimbuck slimbuck deleted the latest branch April 24, 2025 15:31
@slimbuck slimbuck mentioned this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants