From 2ecd4c5e0498641c1d617d79dd890961dc96d53c Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 9 Sep 2023 13:44:56 -0400 Subject: [PATCH] VITA/NX: Prevent muzzleflash from clipping with world --- source/gl_rpart.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/gl_rpart.c b/source/gl_rpart.c index 61242f6..4fb9fc2 100644 --- a/source/gl_rpart.c +++ b/source/gl_rpart.c @@ -2132,9 +2132,14 @@ void QMB_DrawParticles (void) continue; } } + + if (pt->texture == ptex_muzzleflash || pt->texture == ptex_muzzleflash2 || pt->texture == ptex_muzzleflash3) + glDepthRange (0, 0.3); DRAW_PARTICLE_BILLBOARD(ptex, p, billboard); + if (pt->texture == ptex_muzzleflash || pt->texture == ptex_muzzleflash2 || pt->texture == ptex_muzzleflash3) + glDepthRange (0, 1); } break;