Skip to content

dch-GH/Sour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sour

Simple game engine/renderer.

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 );
	}
}

About

Toy OpenGL thing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published