Added Camera, Renderer, ... and moved example to sandbox

This commit is contained in:
Simon Lübeß
2021-01-09 12:05:05 +01:00
parent 2159f8087a
commit 4054a9b0c2
12 changed files with 670 additions and 167 deletions
+31
View File
@@ -0,0 +1,31 @@
using System;
namespace GlitchyEngine.Renderer
{
public class Effect
{
protected GraphicsContext _context;
internal VertexShader _vs;
internal PixelShader _ps;
public GraphicsContext Context => _context;
public VertexShader VertexShader
{
get => _vs;
set => _vs = value;
}
public PixelShader PixelShader
{
get => _ps;
set => _ps = value;
}
public void Bind(GraphicsContext context)
{
context.SetVertexShader(_vs);
context.SetPixelShader(_ps);
}
}
}