Skip to content

Conversation

Child-qjj
Copy link
Contributor

Closes: #30729

Description
set correct y-axis position when renderer.isWebGPURenderer is true

const x = domElement.offsetWidth - dim;
const y = renderer.isWebGPURenderer ? domElement.offsetHeight - dim : 0;

renderer.clearDepth();

renderer.getViewport( viewport );
renderer.setViewport( x, y, dim, dim );

@Mugen87 Mugen87 added this to the r175 milestone Mar 13, 2025
@Mugen87 Mugen87 merged commit c1b36c2 into mrdoob:dev Mar 13, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The ViewHelper shows different Y-axis positions between WebGL and WebGPU renderers.
2 participants