shmodot/scripts/Tracks.cs

23 lines
437 B
C#
Raw Permalink Normal View History

2022-08-04 22:20:29 +02:00
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!");
}
}