Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle color in simpleFluidRenderer
#1
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.



.png   colorAsked.png (Size: 28.63 KB / Downloads: 27)

.png   colorObtained.png (Size: 7.02 KB / Downloads: 27)
Reply
#2
(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;
Reply
#3
Purrrrfect! Thank you for quick reply.
Reply