My react-three-fiber background is supposed to be a dark starry sky. But in the scene it is very bright. Here is the original image:
这是skybox的代码:
const { scene } = useThree();
const texture = useLoader(TextureLoader, "textures/skybox.jpg");
scene.background = texture;
这是场景渲染的内容:
(不要担心模糊.这只是因为我在屏幕上拍摄了一个如此小的区域.)
我问的是我在Poimandres Discord服务器中询问的亮度,其中一位管理员说这可能是一个编码错误,并在这里提问.
编辑:
感谢马奎佐解决了这个问题.我刚刚加了texture.encoding = THREE.sRGBEncoding;
,背景是这样的: