cursor go brrrrrr

This commit is contained in:
Nova 2021-10-29 00:45:27 -05:00
parent 8ebd8b914d
commit 70f1c6a807

View file

@ -8,6 +8,8 @@ class Program {
settings.assetsFolder = "Assets"; settings.assetsFolder = "Assets";
SK.Initialize(settings); SK.Initialize(settings);
Model cursor = Model.FromFile("cursor.glb");
ColorCube cube = new ColorCube(); ColorCube cube = new ColorCube();
OrbitalView.strength = 4; OrbitalView.strength = 4;
OrbitalView.distance = 0.4f; OrbitalView.distance = 0.4f;
@ -17,6 +19,8 @@ class Program {
Matrix orbitMatrix = OrbitalView.transform; Matrix orbitMatrix = OrbitalView.transform;
cube.Step(Matrix.S(Vec3.One * 0.2f) * orbitMatrix); cube.Step(Matrix.S(Vec3.One * 0.2f) * orbitMatrix);
Default.MaterialHand["color"] = cube.color; Default.MaterialHand["color"] = cube.color;
cursor.Draw(Matrix.S(0.1f));
})); }));
SK.Shutdown(); SK.Shutdown();
} }