How can I prevent an image from appearing greyed out when loading it onto the scene background in Three.js?

Try it like so:

const bgTexture = textureLoader.load(stars)
bgTexture.colorSpace = THREE.SRGBColorSpace
scene.background = bgTexture

Since the latest three.js version r152, the engine assumes a sRGB workflow by default. You can find more information about this change here:

2 Likes