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));
You could just do
barProgress = _Frac <= 0.0 ? 0.0 : barProgress;
Or something slightly fancier like
barProgress *= saturate(_Frac / fwidth(i.uvMask.z));
Tech Artist & Graphics Programmer lately focused on Unity VR game dev. https://ko-fi.com/bgolus