Алексей
Алексей

Reputation: 57

How to increase contrast and color saturation when loading a model from gltf

Is it possible in this example https://threejs.org/examples/webgl_loader_gltf.html increase the contrast of the model?

I use this approach to load my models and they come out unsaturated in colors, as if in a small haze (http://prntscr.com/txmihr). Can this be fixed? Thanks

Upvotes: 0

Views: 3054

Answers (1)

Ecksley
Ecksley

Reputation: 344

I came upon this post while researching a problem I had with a mapped texture looking washed out (unsaturated, hazy etc) on my project.

I'm not an expert in THREE or REACT THREE FIBER, but I wanted to share my solution in case there are others on the same search...

There is an issue related to sRGB encoding in THREE. In RTF try using the linear and flat props on your <Canvas/>:

<Canvas
  linear
  flat
>
...
</Canvas>

https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md?plain=1#L50-L51

Upvotes: 2

Related Questions