From 545c3d87ac41255af741bc21894e6d9d2768a83d Mon Sep 17 00:00:00 2001 From: jason bray Date: Fri, 6 Jun 2014 23:02:04 -0400 Subject: [PATCH] small clean up in preperation of v0.1 --- lua/autorun/client/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/autorun/client/init.lua b/lua/autorun/client/init.lua index 9bfe173..41fd86d 100644 --- a/lua/autorun/client/init.lua +++ b/lua/autorun/client/init.lua @@ -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