refactoring

This commit is contained in:
msk
2023-10-11 02:57:24 -07:00
parent b282dd21cd
commit 3685a9e680
3 changed files with 48 additions and 59 deletions
+2 -6
View File
@@ -12,13 +12,8 @@ namespace WacK.Things.TunnelObjects
{
shader = (ShaderMaterial) Material;
}
public void SetCW(bool isCW)
{
shader.SetShaderParameter("isCw", isCW);
}
public void SetPosSize(int pos, int size)
public void Init(int pos, int size, bool isCW)
{
var p = Position;
var s = Size;
@@ -39,6 +34,7 @@ namespace WacK.Things.TunnelObjects
Position = p;
Size = s;
shader.SetShaderParameter("TileMult", s.Y / 64);
shader.SetShaderParameter("isCw", isCW);
}
}
}