diff options
| author | onelin <oscar@nelin.dk> | 2025-12-03 20:00:41 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-12-18 21:14:18 +0000 |
| commit | fa0e9743267397c6e3e3779479d29b63a702209f (patch) | |
| tree | eec18ad38508a18d2b59e5229bb27983e714965f /src | |
| parent | ea8a8213757a48389e41339869ae9e2abd3a72c8 (diff) | |
Enable depth test globally
This is a test, should be enabled/disabled on a per-framebuffer basis.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rendering.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rendering.c b/src/rendering.c index 8a3f137..fda8ded 100644 --- a/src/rendering.c +++ b/src/rendering.c @@ -541,6 +541,8 @@ void r_draw_model(void *restrict context, RenderTargets *restrict t, u32 framebu const GladGLContext *restrict gl = context; Camera c = *t->cam[framebuffer_idx]; gl->BindFramebuffer(GL_FRAMEBUFFER, t->framebuffer[framebuffer_idx]); + gl->Enable(GL_DEPTH_TEST); + gl->DepthFunc(GL_LESS); //const f32 s = pos[3]; mat4 view; // view |
