# Renderer encoding method making difference in color

**URL:** <https://discourse.threejs.org/t/renderer-encoding-method-making-difference-in-color/19709>\
**Category:** Questions\
**Tags:** webgl-renderer\
**Created:** [October 13, 2020, 11:32am UTC](https://discourse.threejs.org/t/renderer-encoding-method-making-difference-in-color/19709 "2020-10-13T11:32:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaya\_kannan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jaya_kannan/32/6847_2.png) [@jaya\_kannan](https://discourse.threejs.org/u/jaya_kannan)\
**Post date:** [October 13, 2020, 11:32am UTC](https://discourse.threejs.org/t/renderer-encoding-method-making-difference-in-color/19709/1 "2020-10-13T11:32:26Z")

</div>

While setting the **renderer output encoding** with various value like `THREE.LinearEncoding` , `THREE.sRGBEncoding` , `RGBADepthPacking` the texture color is changed based on these values. But we are setting the encoder for the renderer. We are using single renderer. But I need some texture with some renderer and other texture with other encoding value. How to use multiple encoding in a single scene. Please ask, If my statements are not clear

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [October 13, 2020, 12:06pm UTC](https://discourse.threejs.org/t/renderer-encoding-method-making-difference-in-color/19709/2 "2020-10-13T12:06:36Z")

</div>

Would [Texture.encoding](https://threejs.org/docs/#api/en/textures/Texture.encoding) help (please note there’s a usage warning in the description in the docs) ?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [October 13, 2020, 12:26pm UTC](https://discourse.threejs.org/t/renderer-encoding-method-making-difference-in-color/19709/3 "2020-10-13T12:26:29Z")

</div>

> [@jaya\_kannan](#):
>
> RGBADepthPacking

This is not a valid value for `WebGLRenderer.outputEncoding`.

It seems you are not interpreting `WebGLRenderer.outputEncoding` correctly. This property is intended to tell the renderer what output encoding should be applied when determining the final color value in the fragment shader. In general, it’s used to configure a color space conversion e.g. from linear to sRGB.

It seems you are looking for `Texture.encoding` which defines how texels are encoded (e.g. sRGB). Without this information, the renderer is not able to decode fetched texels into linear space.
