Refactor yet again and add autotiling
parent
d0d5f6c763
commit
a9f0892f46
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6133035be1006b2606dbec3642df170f4cb862af54eba8a74cc780e6b3d659d5
|
||||
size 34816
|
||||
oid sha256:57177122dbaea7626f584156e3b29c4935b8a2d5c06e8f72ea8b855be575858e
|
||||
size 35328
|
||||
|
@ -1,34 +0,0 @@
|
||||
using ConformalDecals.MaterialModifiers;
|
||||
using ConformalDecals.Util;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ConformalDecals {
|
||||
public class ModuleConformalDecalGeneric : ModuleConformalDecalBase {
|
||||
public override void OnLoad(ConfigNode node) {
|
||||
|
||||
// set shader
|
||||
materialProperties.SetShader(shader);
|
||||
// add texture nodes
|
||||
foreach (var textureNode in node.GetNodes("TEXTURE")) {
|
||||
materialProperties.ParseProperty<MaterialTextureProperty>(textureNode);
|
||||
}
|
||||
|
||||
// add float nodes
|
||||
foreach (var floatNode in node.GetNodes("FLOAT")) {
|
||||
materialProperties.ParseProperty<MaterialTextureProperty>(floatNode);
|
||||
}
|
||||
|
||||
// add color nodes
|
||||
foreach (var colorNode in node.GetNodes("COLOR")) {
|
||||
materialProperties.ParseProperty<MaterialColorProperty>(colorNode);
|
||||
}
|
||||
|
||||
base.OnLoad(node);
|
||||
}
|
||||
|
||||
public override void OnIconCreate() {
|
||||
this.Log("called OnIconCreate");
|
||||
UpdateScale();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue