We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e431c86 commit 5bb9084Copy full SHA for 5bb9084
Game/Content/Shaders.cs
@@ -0,0 +1,8 @@
1
+namespace Game.Content
2
+{
3
+ // TODO: Generate these constants via build script
4
+ public static class Shaders
5
+ {
6
+ public const string Flat = "flat.hlsl";
7
+ }
8
+}
Game/Game.cs
@@ -6,6 +6,7 @@
using Engine.Assets;
using Engine.Components;
using Engine.Entities;
9
+using Game.Content;
10
using Veldrid;
11
using Veldrid.OpenGL;
12
using Veldrid.Sdl2;
@@ -58,6 +59,7 @@ protected override void Initialize()
58
59
AssetDirectoryPaths.Add(AssetType.Shader, "Game.Content.Shaders");
60
61
World.Add(EntityFactory.Create<Camera>());
62
+ World.Add(EntityFactory.Create(new Material("TestMaterial", Shaders.Flat)));
63
64
_commandList = ResourceFactory.CreateCommandList();
65
}
0 commit comments