Rename MaterialModifiers namespace

This commit is contained in:
2020-06-19 16:35:10 -07:00
parent 8acf17f189
commit 35381fae65
7 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1,20 @@
using System;
using UnityEngine;
namespace ConformalDecals.MaterialProperties {
public class MaterialFloatProperty : MaterialProperty {
[SerializeField] public float value;
public override void ParseNode(ConfigNode node) {
base.ParseNode(node);
value = ParsePropertyFloat(node, "value", true, value);
}
public override void Modify(Material material) {
if (material == null) throw new ArgumentNullException("material cannot be null");
material.SetFloat(_propertyID, value);
}
}
}