mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Add enable/disable logic to ModuleConformingDecal
This commit is contained in:
@ -108,7 +108,5 @@ namespace ConformalDecals.MaterialModifiers {
|
||||
textureProperty.UpdateScale(ParsedMaterial, scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user