Freshnel x depthfade shader question

Hey I was looking into this shader and it would fit perfect for my vfx. However it only fades the color to the outside of what im looking leaving an hard edge on the inside, how to fade it both ways?



Little confused on what you mean - but try plugging a parameter into the fresnel node exponent and base refract inputs, should help you adjust the hardness of it.

1 Like

Hi , I’m not entirely sure about the expected result. However if you make sure both of your value have a range from 0 to 1 (you can use a saturate node to clamp it ) , you have different avenues to remap your values to make if fade from both side.
If you want the same gradient on both side the red option is the simple one where your 0.5 value will become the center of your gradient as max value.
If you want to have different sharpness you can go for an approach similar to the yellow option is a combination of remaps here using a smoothsep ( smoothsep wont be a perfect linear gradient as it smooth around min and max) that way the max value can be at different position .
Hope it can help you with your effect.

2 Likes

Thanks for the Reply!, ill give it a shot :slight_smile: