Add enable/disable logic to ModuleConformingDecal

This commit is contained in:
2020-05-29 23:26:33 -07:00
parent d5038e19bc
commit 995c9120e5
5 changed files with 65 additions and 10 deletions

View File

@ -108,7 +108,5 @@ namespace ConformalDecals.MaterialModifiers {
textureProperty.UpdateScale(ParsedMaterial, scale);
}
}
}
}

View File

@ -5,13 +5,13 @@ namespace ConformalDecals.MaterialModifiers {
public class TextureMaterialProperty : MaterialProperty {
public string TextureUrl { get; }
public Texture2D TextureRef { get; }
public bool IsNormal { get; }
public bool IsMain { get; }
public bool AutoScale { get; }
public Rect TileRect { get; }
public float AspectRatio => TileRect.height / TileRect.width;
private readonly Vector2 _textureOffset;