Skip to content

Commit

Permalink
small clean up in preperation of v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bliptec committed Jun 7, 2014
1 parent 2a02a15 commit 545c3d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lua/autorun/client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ hook.Add( "RenderScene", "WorldPortalRenderHook", function( plyOrigin, plyAngles
render.ClearStencil()

render.EnableClipping(true)
--render.PopCustomClipPlane()
render.PushCustomClipPlane(portals[portal.exit].forward, portals[portal.exit].forward:Dot(portals[portal.exit].pos) )

local rotation = portals[portal.exit].forward:Angle() - portal.forward:Angle()
rotation = rotation + Angle( 0, 180, 0)
local offset = LocalPlayer():EyePos() - portal.pos
--offset = calculateNewOffset( portal, offset )
offset:Rotate( rotation )
local camPos = portals[portal.exit].pos + offset

Expand Down

0 comments on commit 545c3d8

Please sign in to comment.