Improved PostProcessing System
This commit is contained in:
parent
0ab7f29b06
commit
e4e7db8dc0
10 changed files with 181 additions and 6 deletions
20
SMCode/SM2D/Light/LightPostEffect.cs
Normal file
20
SMCode/SM2D/Light/LightPostEffect.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System.Reflection;
|
||||
using SM.Base.PostProcess;
|
||||
using SM.Base.Scene;
|
||||
using SM.OGL.Framebuffer;
|
||||
using SM.Utility;
|
||||
|
||||
namespace SM2D.Light
|
||||
{
|
||||
public class LightPostEffect : PostProcessEffect
|
||||
{
|
||||
PostProcessShader _shader = new PostProcessShader(AssemblyUtility.ReadAssemblyFile("SM2D.Light.light.frag"));
|
||||
|
||||
public override void Draw(Framebuffer main)
|
||||
{
|
||||
base.Draw(main);
|
||||
|
||||
_shader.Draw(main.ColorAttachments["color"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue