shmodot/scripts/Tracks.cs

23 lines
437 B
C#

using Godot;
using System;
[Tool]
public class Tracks : ImmediateGeometry
{
private SpatialMaterial _m;
public override void _Ready()
{
// set up a material for imgui to use
_m = new SpatialMaterial();
_m.VertexColorUseAsAlbedo = true;
_m.FlagsUnshaded = true;
this.MaterialOverride = _m;
}
public override void _Process(float delta)
{
GD.Print("hi!");
}
}