public Framebuffer( int FboHandle, int ColorTexture, int DepthTexture, Vector2 size, FramebufferCreator parent) { this.FboHandle = FboHandle; this.ColorTexture = ColorTexture; this.DepthTexture = DepthTexture; this.size = size; //Parent = parent; }
public static void Load() { ShadowPassShader = ShaderLoader.GetShader("Shadow.xsp"); fbCreator = new FramebufferCreator(); LightFramebuffer= fbCreator.createFrameBuffer("LightFramebuffer", SceneManager.Window.Width, SceneManager.Window.Height, PixelInternalFormat.Rgba16f, false); LightFramebuffer.clearColor = new OpenTK.Graphics.Color4(0f, 0f, 0f, 0f); Scene.Load(); GL.MatrixMode(MatrixMode.Projection); GL.Ortho(0.0, (double)Window.Width, 0.0, (double)Window.Height, -10.0, 10.0); GL.MatrixMode(MatrixMode.Modelview); }
public DefaultFramebuffer(Vector2 size, FramebufferCreator parent) { //Parent = parent; this.size = size; }