# ShaderPass using HueSaturationShader on EffectComposer not working

**URL:** <https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558>\
**Category:** Questions\
**Tags:** materials\
**Created:** [December 10, 2021, 4:01pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558 "2021-12-10T16:01:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeadalusVIII](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/deadalusviii/32/22759_2.png) [@DeadalusVIII](https://discourse.threejs.org/u/DeadalusVIII)\
**Post date:** [December 10, 2021, 4:01pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/1 "2021-12-10T16:01:02Z")

</div>

Hi,

I’m trying to use the HueSaturationShader using a ShaderPass on the EffectComposer, but unlike other shaders, I haven’t been able to see any effect taking place.

Here’s a fiddle.  
[https://jsfiddle.net/pedrobrandaosilva/fprsLw5n/14/](https://jsfiddle.net/pedrobrandaosilva/fprsLw5n/14/)

It starts with the VignetteShader (which is working), and then the HueSaturationShader, but I see no result from the later.

What am I missing?

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 10, 2021, 5:17pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/2 "2021-12-10T17:17:24Z")

</div>

Hi!  
You need to assign numbers to `value` of uniforms, not to uniforms themselves.

---

<div class="post-metadata">

**Author:** ![DeadalusVIII](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/deadalusviii/32/22759_2.png) [@DeadalusVIII](https://discourse.threejs.org/u/DeadalusVIII)\
**Post date:** [December 10, 2021, 6:13pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/3 "2021-12-10T18:13:38Z")

</div>

Argh, you’re absolutely right, but even so it doesn’t seem to work:

[https://jsfiddle.net/pedrobrandaosilva/eqgk7s1h/1/](https://jsfiddle.net/pedrobrandaosilva/eqgk7s1h/1/)

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 10, 2021, 6:41pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/4 "2021-12-10T18:41:29Z")

</div>

I didn’t get the moment, where you do these tricks with mixing results of renderer and compose in the animation loop. [HueSaturationShader test - JSFiddle - Code Playground](https://jsfiddle.net/62Lfjwhg/2/)

---

<div class="post-metadata">

**Author:** ![DeadalusVIII](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/deadalusviii/32/22759_2.png) [@DeadalusVIII](https://discourse.threejs.org/u/DeadalusVIII)\
**Post date:** [December 10, 2021, 7:00pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/5 "2021-12-10T19:00:48Z")

</div>

I see, what a mess I had in this fiddle.

I started from a boilerplate from another fiddle, and I didn’t realize this setup in the render section.

I’m having this issue with the HueSaturationShader in my project, but since it is far more complex, I tried to reduce it to this smaller sample. Since I saw the same problem, it thought it could be related to the shader/pass itself.

Unfortunately the solution is not so simple in my project, but at least I know it’s not related to three.js.

Thank you for the quick responses!

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 10, 2021, 7:13pm UTC](https://discourse.threejs.org/t/shaderpass-using-huesaturationshader-on-effectcomposer-not-working/32558/6 "2021-12-10T19:13:49Z")

</div>

You’re welcome 🙂  
Glad I could help somehow.
