Skip to content

doc(render): fix incorrectly transposed view matrix docs #19317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

atlv24
Copy link
Contributor

@atlv24 atlv24 commented May 21, 2025

Objective

  • Mend incorrect docs

Solution

  • Mend them
  • add example use
  • clarify column major

Testing

  • No code changes

@atlv24 atlv24 added C-Docs An addition or correction to our documentation A-Rendering Drawing game state to the screen S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 21, 2025
@atlv24 atlv24 added D-Straightforward Simple bug fixes and API improvements, docs, test and examples C-Bug An unexpected or incorrect behavior labels May 21, 2025
@atlv24 atlv24 added this to the 0.16.1 milestone May 21, 2025
/// ⎣ cw / w ch / h near / d 1 ⎦
/// ⎡ 2 / w 0 0 cw / w ⎤
/// ⎢ 0 2 / h 0 ch / h ⎥
/// ⎢ 0 0 1 / d near / d ⎥
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know this codebase, but a quick check: is this row correct given the swapping of near and far here https://github.com/bevyengine/bevy/blob/main/crates/bevy_render/src/camera/projection.rs#L561-L562 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, thanks!

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 27, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 27, 2025
Merged via the queue into bevyengine:main with commit 2946de4 May 27, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior C-Docs An addition or correction to our documentation D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants