Obi Official Forum

Full Version: Particle color in simpleFluidRenderer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.


[attachment=304][attachment=305]
(25-03-2019, 10:54 AM)anonymous Wrote: [ -> ]Hi.

I'm trying to get a very bright green but the color rendered is much darker than the one set in the fluid material inside simpleFluidRenderer. See incl. pics below. I've tried different things but I can't find the solution. Nothing similar found on the web. What am I missing? This should be simple.
The included simple fluid shader performs multiplicative blending between the background color (dark blue in your case) and the fluid color.

You're supposed to write your own fluid shaders, the included one is just a sample. To get a flat color shader, modify the last line of the shader to be:
Code:
return _Color;

instead of
Code:
return output*_Color;
Purrrrfect! Thank you for quick reply.