Skip to content

Commit 0cea77e

Browse files
committed
fix: remove debug stuff
1 parent 960b53d commit 0cea77e

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minify.py
2+
cl_melons_shadows_min.lua

cl_melons_shadows.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
local shadows = {}
1010

1111
shadows.RenderTarget = GetRenderTarget("MelonsShadows", ScrW(), ScrH())
12-
shadows.Material = CreateMaterial("MelonsShadows" .. CurTime(), "UnlitGeneric", {
12+
shadows.Material = CreateMaterial("MelonsShadows", "UnlitGeneric", {
1313
["$basetexture"] = shadows.RenderTarget:GetName(),
1414
["$transparent"] = "1",
1515
["$color"] = "1",
@@ -42,7 +42,7 @@ function shadows.Start(name)
4242

4343
at_x = 0,
4444
at_y = 0,
45-
45+
4646
xoffset = 0,
4747
yoffset = 0
4848
}
@@ -73,7 +73,7 @@ function shadows.End()
7373
end
7474

7575
render.PopRenderTarget()
76-
76+
7777
shadows.Render()
7878

7979
cam.End2D()
@@ -89,10 +89,10 @@ function shadows.Render()
8989
local c = shadows.Current
9090
shadows.Material:SetFloat("$alpha", c.opacity / 255)
9191
render.SetMaterial(shadows.Material)
92-
92+
9393
local x, y = 0, 0
9494
local w, h = ScrW(), ScrH()
95-
95+
9696
if IsValid(c.relative) then
9797
x, y = c.relative:LocalToScreen(0, 0)
9898
x = x - c.at_x
@@ -208,7 +208,7 @@ melon.DebugPanel("Melon:Draggable", function(pnl)
208208

209209
shadows.End()
210210
end
211-
211+
212212
surface.SetDrawColor(255, 255, 255)
213213
surface.DrawOutlinedRect(0, 0, w, h, w / 4)
214214
end

0 commit comments

Comments
 (0)