|
@@ -350,7 +350,7 @@ class WebGPUBackend extends Backend {
|
|
|
|
|
|
const { x, y, width, height } = renderContext.scissorValue;
|
|
const { x, y, width, height } = renderContext.scissorValue;
|
|
|
|
|
|
- currentPass.setScissorRect( x, y, width, height );
|
|
|
|
|
|
+ currentPass.setScissorRect( x, renderContext.height - height - y, width, height );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -484,9 +484,9 @@ class WebGPUBackend extends Backend {
|
|
updateViewport( renderContext ) {
|
|
updateViewport( renderContext ) {
|
|
|
|
|
|
const { currentPass } = this.get( renderContext );
|
|
const { currentPass } = this.get( renderContext );
|
|
- const { x, y, width, height, minDepth, maxDepth } = renderContext.viewportValue;
|
|
|
|
|
|
+ let { x, y, width, height, minDepth, maxDepth } = renderContext.viewportValue;
|
|
|
|
|
|
- currentPass.setViewport( x, y, width, height, minDepth, maxDepth );
|
|
|
|
|
|
+ currentPass.setViewport( x, renderContext.height - height - y, width, height, minDepth, maxDepth );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|