mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added Effect constructor
This commit is contained in:
@@ -43,6 +43,17 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public this(GraphicsContext context, String filename, String vsEntry, String psEntry)
|
||||
{
|
||||
let vs = Shader.FromFile!<VertexShader>(context, filename, vsEntry);
|
||||
VertexShader = vs;
|
||||
vs.ReleaseRef();
|
||||
|
||||
let ps = Shader.FromFile!<PixelShader>(context, filename, psEntry);
|
||||
PixelShader = ps;
|
||||
ps.ReleaseRef();
|
||||
}
|
||||
|
||||
public this(String vsPath, String vsEntry, String psPath, String psEntry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user