You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.Assert(Mathf.Abs(Mathf.Round(occupiedTexelOffsetXFloat)-occupiedTexelOffsetXFloat)<0.001f,$"Expected offset (X) to be very close to zero. Was {occupiedTexelOffsetXFloat%1}. Was the scene baked with the same resolution as it was atlassed for?");
544
-
Debug.Assert(Mathf.Abs(Mathf.Round(occupiedTexelOffsetYFloat)-occupiedTexelOffsetYFloat)<0.001f,$"Expected offset (Y) to be very close to zero. Was {occupiedTexelOffsetYFloat%1}. Was the scene baked with the same resolution as it was atlassed for?");
Debug.Assert(Mathf.Min(distanceToHalfX,distanceToWholeX)<0.001f,$"Expected offset (X) to align with an offset of 0.5 (half texel) or 0.0 (whole texel). Was {occupiedTexelOffsetXFloat}. Was the scene baked with the same resolution as it was atlassed for?");
556
+
Debug.Assert(Mathf.Min(distanceToHalfY,distanceToWholeY)<0.001f,$"Expected offset (Y) to align with an offset of 0.5 (half texel) or 0.0 (whole texel). Was {occupiedTexelOffsetYFloat}. Was the scene baked with the same resolution as it was atlassed for?");
557
+
Debug.Assert((distanceToHalfX<distanceToWholeX&&distanceToHalfY<distanceToWholeY)||(distanceToHalfX>distanceToWholeX&&distanceToHalfY>distanceToWholeY),"Texel alignment with an offset of 0.5 (half texel) or 0.0 (whole texel) must be the same for X and Y");
0 commit comments