mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
16 lines
449 B
C#
16 lines
449 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace ConformalDecals.MaterialModifiers {
|
|
public class FloatMaterialProperty : MaterialProperty {
|
|
private readonly float _value;
|
|
|
|
public FloatMaterialProperty(ConfigNode node) : base(node) {
|
|
_value = ParsePropertyFloat(node, "value", false);
|
|
}
|
|
|
|
public override void Modify(Material material) {
|
|
material.SetFloat(_propertyID, _value);
|
|
}
|
|
}
|
|
} |