Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small square will appear threejs the background and overrideMaterial properties of the scene are set at the same time. #30726

Open
rwjCxgsy opened this issue Mar 12, 2025 · 0 comments

Comments

@rwjCxgsy
Copy link

rwjCxgsy commented Mar 12, 2025

Description

I found a problem. When I added a background texture to the scene and set overMaterial attributes at the same time, an unexpected square appeared. I hope it can help

Reproduction steps

  1. scene.background = texture;
  2. scene.overrideMaterial = new THREE.MeshBasicMaterial({
    wireframe: true,
    color: 0xff0000,
    });

Code

  scene.background = texture;
  scene.overrideMaterial = new THREE.MeshBasicMaterial({
    wireframe: true,
    color: 0xff0000,
  });

Live example

Screenshots

Image

Version

r174

Device

Desktop

Browser

Chrome

OS

Windows

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

No branches or pull requests

1 participant