99local shadows = {}
1010
1111shadows .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