Skip to content

Conversation

@georginahalpern
Copy link
Contributor

in FloatingOriginMode, we override effect.setMatrix to apply an offset. This in turn calls pipelineContext.setMatrix, which in webGPUPipelineContext will call ubo.updateMatrix

previously, this would apply offset again and cause incorrect positioning. The fix is to avoid double offset by existing early if the passed in matrix is === the most recently offset Temp matrix. To avoid cases where TempFinalMat happens to be equal values, I also move the updateFlag set to after the early out check.

@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@deltakosh deltakosh enabled auto-merge (squash) October 28, 2025 16:52
@deltakosh deltakosh requested a review from Popov72 October 28, 2025 16:52
@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Oct 28, 2025

@deltakosh deltakosh merged commit 993eadf into BabylonJS:master Oct 28, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants