jpp
November 18, 2025, 9:43pm
1
Hello
I’m trying to convert a few three.js projects from WebGL to WebGPU, but now I’m having an issue if I use an orthographic camera (instead of a perspective one) together with a texture in the scene background.
When I use a perspective camera, the background texture looks fine. It will fill the entire canvas, as expected:
https://www.dei.isep.ipp.pt/~jpp/webGPU/cube1/cube.html
But if I decide to use an orthographic camera, the texture will only fill part of the screen (a circle!):
https://www.dei.isep.ipp.pt/~jpp/webGPU/cube2/cube.html
I’m using the most recent three.js revision (r181).
Could you please help? Thanks in advance.
Mugen87
November 19, 2025, 11:04am
2
This looks like a bug in the WebGPURenderer. Do you mind filing an issue at GitHub?
You can share the following fiddle as an editable live example that demonstrates the bug: three.js dev template - module - JSFiddle - Code Playground
1 Like
Mugen87
November 19, 2025, 11:48am
3
No need for the issue. I have directly filed a PR:
dev ← Mugen87:dev6
opened 11:48AM - 19 Nov 25 UTC
Related issue: https://discourse.threejs.org/t/issue-with-webgpu-orthographic-ca… mera-scene-background-texture/88190
**Description**
A user in the forum reported an issue that textured backgrounds do not work with orthographic cameras.
For reproduction: https://jsfiddle.net/3Lwgv08s/1/
I have fixed the issue by setting up a different material and background mesh configuration for environment maps/skyboxes or flat textures.
3 Likes