Skip to content

Commit

Permalink
Workaround improper near/far clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Jul 8, 2024
1 parent ca104b7 commit 366903b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/gminimap/client/radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,17 @@ function Radar:Capture( origin )
PushFilterMin( 1 )
PushFilterMag( 1 )

local offset = 1000

render.RenderView( {
origin = origin,
origin = origin + Vector( 0, 0, offset ),
angles = Angle( 90, 0, 0 ),
x = 0,
y = 0,
w = 1024,
h = 1024,
znear = 100,
zfar = self.top - self.bottom,
znear = offset,
zfar = self.top - self.bottom + offset,
drawhud = false,
drawmonitors = false,
drawviewmodel = false,
Expand Down

0 comments on commit 366903b

Please sign in to comment.