mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibGL: Add depth tests and writes to SoftwareRasterizer
Tests against and writes to the depth buffer when GL_DEPTH_TEST is enabled via glEnable(). Currently fragment z is always compared against existing depth with GL_LESS.
This commit is contained in:
parent
608f81e6c2
commit
e8f66f821c
2 changed files with 43 additions and 11 deletions
|
@ -6,7 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "DepthBuffer.h"
|
||||
#include "GLStruct.h"
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Vector4.h>
|
||||
|
||||
|
@ -32,6 +34,7 @@ public:
|
|||
|
||||
private:
|
||||
RefPtr<Gfx::Bitmap> m_render_target;
|
||||
OwnPtr<DepthBuffer> m_depth_buffer;
|
||||
RasterizerOptions m_options;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue