Closed
Description
Description
When using the WebGL fallback renderer, autoClear seems to be causing issues:
This can be reproduced by adding:
function animate() {
renderer.autoClear = true;
renderer.render(scene, camera);
const geometry = new THREE.SphereGeometry(5, 64, 32);
const material = new THREE.MeshBasicMaterial({
color: 0xffffff,
});
mesh = new THREE.Mesh(geometry, material);
renderer.autoClear = false;
renderer.render(mesh, camera);
}
in the https://threejs.org/examples/?q=light%20probe#webgpu_lightprobe example and using forceWebGL: true
for the renderer.
Setting antialias: false
will make it not look mangled but there are still issues with it not clearing (update: I think those issues were unrelated).
I'm not getting the same issue when using WebGPU or the WebGL example.
Version
174dev
Device
Desktop
Browser
Chrome
OS
Linux