Skip to content

WebGLbackend: autoClear bug #30589

Closed
@zonkypop

Description

@zonkypop

Description

When using the WebGL fallback renderer, autoClear seems to be causing issues:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions