+ Bloom effect + PixelInformation + Many Summaries + Add-methods for CVectors + Exposure-Field in GenericCamera for HDR. ~ ColorAttachments now can have PixelInformation ~ Transformed MeshAttributes to a own class ~ Fixed the non-applying of transformations at texts ~ Added more information to the context ~ Improved Pipeline-Process. ~ Changed how Uniform takes arrays - Light system
28 lines
No EOL
708 B
C#
28 lines
No EOL
708 B
C#
using System;
|
|
using OpenTK.Graphics.OpenGL4;
|
|
using SM.Base;
|
|
using SM.Base.Contexts;
|
|
using SM.Base.Drawing;
|
|
using SM.OGL.Framebuffer;
|
|
using SM2D.Shader;
|
|
|
|
namespace SM2D.Pipelines
|
|
{
|
|
public class Basic2DPipeline : RenderPipeline<Scene.Scene>
|
|
{
|
|
public static Basic2DPipeline Pipeline = new Basic2DPipeline();
|
|
|
|
|
|
private Basic2DPipeline()
|
|
{
|
|
_defaultShader = Basic2DShader.Shader;
|
|
}
|
|
|
|
protected override void RenderProcess(ref DrawContext context, Scene.Scene scene)
|
|
{
|
|
|
|
Framebuffer.Screen.Activate(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
|
|
if (scene != null) scene.Draw(context);
|
|
}
|
|
}
|
|
} |