Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fluid on black background
#6
(04-06-2020, 01:52 PM)hromoyDron Wrote: OpaqueFluid material is not suits to my visual style. 

Then you'll have to modify/customize the shader yourself.

(04-06-2020, 01:52 PM)hromoyDron Wrote: Can I make SimpleFluid (Simple2DFluid shader) opaque?

Easiest way to make simple fluid shader opaque is to just return the fluid color, instead of multipliying it with the background. Change the last line of SimpleFluid.shader from this:
Code:
return output*_Color; // tint your fluid here.

to this:
Code:
return _Color;
This will result in opaque, flat fluid.
Reply


Messages In This Thread
Fluid on black background - by hromoyDron - 04-06-2020, 12:01 PM
RE: Fluid on black background - by josemendez - 04-06-2020, 12:16 PM
RE: Fluid on black background - by hromoyDron - 04-06-2020, 01:30 PM
RE: Fluid on black background - by josemendez - 04-06-2020, 01:37 PM
RE: Fluid on black background - by hromoyDron - 04-06-2020, 01:52 PM
RE: Fluid on black background - by josemendez - 04-06-2020, 01:59 PM
RE: Fluid on black background - by hromoyDron - 04-06-2020, 02:01 PM