diff --git a/project/code/TMV/ModelLoader.cs b/project/code/TMV/ModelLoader.cs index c59a440..5448934 100644 --- a/project/code/TMV/ModelLoader.cs +++ b/project/code/TMV/ModelLoader.cs @@ -63,10 +63,20 @@ public class ModelLoader GD.Print($"Failed to load model texture: {material.Name}"); } - materials.Add(new StandardMaterial3D + var mat = new StandardMaterial3D { AlbedoTexture = TextureLoader.LoadTexture(path) - }); + }; + var name = material.Name.ToLower(); + for (var i = 0; i < 4; i++) + { + if (name.Contains($"replace{i}")) + { + mat.SetMeta($"TxtRepl{i}", true); + } + } + + materials.Add(mat); } else {