Cherry-picked [ab78991]: Rendering tiled sprites with scaling works correctly now (I think?), added option to edit the offset of structure textures

This commit is contained in:
Joonas Rikkonen
2018-04-17 12:11:48 +03:00
parent 607acb6e8a
commit 9a8f13140e
4 changed files with 192 additions and 113 deletions
@@ -16,6 +16,11 @@ namespace Barotrauma
static class MathUtils
{
public static int PositiveModulo(int i, int n)
{
return (i % n + n) % n;
}
public static Vector2 SmoothStep(Vector2 v1, Vector2 v2, float amount)
{
return new Vector2(