01-11-2019, 10:30 AM
(This post was last modified: 01-11-2019, 10:30 AM by josemendez.)
(01-11-2019, 12:47 AM)goldenmommy Wrote: Thanks for the response! It's very close but the refraction slider is not having any effect and the fluid is rendered unrefracted. Also the cloudiness slider does not seem to be doing anything either but the color is being applied. Any ideas?
Hi,
Neither of those things are implemented in the shader I posted, as you can see. The resulting color is simply the background color (read from the _Refraction buffer) multiplied by the cloudiness color. No refraction, no gradual application of the cloudiness.
Adding these should be trivial, simply copy-paste the bits you need from the original dielectric shader.