Sitemap
Ben Golus
Jul 28, 2022

You could just do
barProgress = _Frac <= 0.0 ? 0.0 : barProgress;

Or something slightly fancier like
barProgress *= saturate(_Frac / fwidth(i.uvMask.z));

Ben Golus
Ben Golus

Written by Ben Golus

Tech Artist & Graphics Programmer lately focused on Unity VR game dev. https://ko-fi.com/bgolus

No responses yet