ShaderPass using HueSaturationShader on EffectComposer not working

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/

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

What am I missing?

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

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

https://jsfiddle.net/pedrobrandaosilva/eqgk7s1h/1/

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

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!

You’re welcome :slight_smile:
Glad I could help somehow.