fix sprays drawing for skybox + use PreDrawTranslucentRenderables instead

This commit is contained in:
Bonyoze 2024-07-12 22:26:51 -04:00 committed by GitHub
parent 9f79677da4
commit 60ce9a445d
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