Merge pull request #4 from Bonyoze/main

SprayMesh Extended - Fix sprays drawing twice and over translucent renderables
This commit is contained in:
Chev 2024-10-29 19:02:41 +00:00 committed by GitHub
commit 9636b90a83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -881,8 +881,8 @@ hook.Add("PostDrawHUD", "SprayMesh.GenerateSprayPlaceholderTextures", function()
end)
-- Draw meshes for all player sprays
hook.Add("PostDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
if isDrawingDepth then return end
hook.Add("PreDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
if isDrawingDepth or isDrawingSkybox then return end
-- If render order doesn't exist yet, rebuild it
if not spraymesh.RENDER_ITER_CLIENT then