English 中文(简体)
反应型三维情景比原形象亮
原标题:react-three-fiber scene background brighter than original image

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: Original issues image

This is the code for the skybox:

const { scene } = useThree();

const texture = useLoader(TextureLoader, "textures/skybox.jpg");

scene.background = texture;

情况是:

“现场普查”/

(关于水流的on。) 这只是因为我打了我屏幕上的这样一个小地区。

我正在问一看光明。 我在《Poimandres Discord》服务器和一家行政公司中询问,这可能是一条令人不安的错误,并在此问。


Edit:

感谢马尔基齐索解决这一问题。 我只添加了<代码>texture.encoding = THREE.sRGBEncoding;,背景如下:

“Fixed

最佳回答

It might be an issue with your texture color space property. By default textures use THREE.NoColorSpace, but for a straight background JPG that doesn t interact with lighting you could use sRGB.

const texture = useLoader(TextureLoader, "textures/skybox.jpg");
texture.colorSpace = THREE.SRGBColorSpace;
scene.background = texture;
问题回答

暂无回答




相关问题
How to use one react app into another react app?

I have two react apps, parent app and child app. and child app have an hash router. I have build the child app using npm run build, It creates build folder. That build folder moved into inside the ...

how to get selected value in Ant Design

I want to print the selected value, and below is my option list: const vesselName = [ { value: 0 , label: ALBIDDA , }, { value: 1 , label: ALRUMEILA , }, { value: 2 ,...

How to add a <br> tag in reactjs between two strings?

I am using react. I want to add a line break <br> between strings No results and Please try another search term. . I have tried No results.<br>Please try another search term. but ...

热门标签