Shader hot reloading wow!!
2024-05-07.01-40-41.mp4
GameObjects!!
var cone = GameObject.Spawn();
cone.AddComponent( new ModelComponent( "Resources/Models/Cone/cone.obj", new Material( fragShaderPath: "Resources/Shaders/frag.glsl" ) ) );
cone.Transform.Position += Axis.Right * 3f;
cone.AddComponent<RotatorComponent>();
Components!!!
class RotatorComponent : Component
{
public override void Update()
{
base.Update();
GameObject.Transform.Rotation = Quaternion.FromAxisAngle( Axis.Up + Axis.Forward * 0.5f, Time.Elapsed );
}
}