mirror of
https://github.com/chev2/gmod-addons.git
synced 2025-10-30 06:31:35 +00:00
fix sprays drawing for skybox + use PreDrawTranslucentRenderables instead
This commit is contained in:
parent
9f79677da4
commit
60ce9a445d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue