~ Changed Pipelines
(Default2DPipeline: Has Lights, Post-ProcessingEffects, etc.) (Basic2DPipeline: Simple Color and Texture stuff, thats it)
This commit is contained in:
parent
1ed03fec3f
commit
5d4b360b05
23 changed files with 243 additions and 59 deletions
|
|
@ -24,7 +24,7 @@ namespace SM.Base.PostProcess
|
|||
Init();
|
||||
}
|
||||
|
||||
public virtual void Draw(Framebuffer main)
|
||||
public virtual void Draw(Framebuffer main, Framebuffer target)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,12 +53,11 @@ namespace SM.Base.PostProcess
|
|||
|
||||
Uniforms["MVP"].SetMatrix4(PostProcessEffect.Mvp);
|
||||
Uniforms["ModelMatrix"].SetMatrix4(PostProcessEffect.Model);
|
||||
Uniforms["renderedTexture"].SetTexture(color, 0);
|
||||
Uniforms["renderedTexture"].SetTexture(color);
|
||||
|
||||
GL.DrawArrays(PrimitiveType.Quads, 0, 4);
|
||||
|
||||
GL.BindTexture(TextureTarget.Texture2D, 0);
|
||||
GL.BindVertexArray(0);
|
||||
CleanUp();
|
||||
GL.UseProgram(0);
|
||||
}
|
||||
|
||||
|
|
@ -74,14 +73,13 @@ namespace SM.Base.PostProcess
|
|||
|
||||
Uniforms["MVP"].SetMatrix4(PostProcessEffect.Mvp);
|
||||
Uniforms["ModelMatrix"].SetMatrix4(PostProcessEffect.Model);
|
||||
Uniforms["renderedTexture"].SetTexture(color, 0);
|
||||
Uniforms["renderedTexture"].SetTexture(color);
|
||||
|
||||
setUniformAction(Uniforms);
|
||||
|
||||
GL.DrawArrays(PrimitiveType.Quads, 0, 4);
|
||||
|
||||
GL.BindTexture(TextureTarget.Texture2D, 0);
|
||||
GL.BindVertexArray(0);
|
||||
CleanUp();
|
||||
GL.UseProgram(0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue