From 310459b49015cdcbc23dfb6aa206eb796fae70d2 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 20 Nov 2019 22:11:40 +0100 Subject: [PATCH] Remove dead code --- src/rendering/swrenderer/line/r_wallsetup.cpp | 51 ------------------- 1 file changed, 51 deletions(-) diff --git a/src/rendering/swrenderer/line/r_wallsetup.cpp b/src/rendering/swrenderer/line/r_wallsetup.cpp index 6a009d47c3..0f26308f18 100644 --- a/src/rendering/swrenderer/line/r_wallsetup.cpp +++ b/src/rendering/swrenderer/line/r_wallsetup.cpp @@ -551,9 +551,6 @@ namespace swrenderer v1.w = 1.0f / v1.w; v2.w = 1.0f / v2.w; v3.w = 1.0f / v3.w; - //v1.x = viewport->CenterX + v1.x * v1.w * viewport->CenterX; - //v2.x = viewport->CenterX + v2.x * v2.w * viewport->CenterX; - //v3.x = viewport->CenterX + v3.x * v3.w * viewport->CenterX; v1.y = viewport->CenterY - v1.y * v1.w * viewport->InvZtoScale; v2.y = viewport->CenterY - v2.y * v2.w * viewport->InvZtoScale; v3.y = viewport->CenterY - v3.y * v3.w * viewport->InvZtoScale; @@ -577,54 +574,6 @@ namespace swrenderer wpos = v1.w; } -#if 0 - float ProjectedWallTexcoords::VStep(int x) const - { - return 0.0001f; - /* - float uOverZ = WallT.UoverZorg + WallT.UoverZstep * (float)(x1 + 0.5 - CenterX); - float invZ = WallT.InvZorg + WallT.InvZstep * (float)(x1 + 0.5 - CenterX); - float uGradient = WallT.UoverZstep; - float zGradient = WallT.InvZstep; - float depthScale = (float)(WallT.InvZstep * WallTMapScale2); - float depthOrg = (float)(-WallT.UoverZstep * WallTMapScale2); - float u = (uOverZ + uGradient * (x - x1)) / (invZ + zGradient * (x - x1)); - - return depthOrg + u * depthScale; - */ - } - - fixed_t ProjectedWallTexcoords::UPos(int x) const - { - return 0; - /* - float uOverZ = WallT.UoverZorg + WallT.UoverZstep * (float)(x1 + 0.5 - CenterX); - float invZ = WallT.InvZorg + WallT.InvZstep * (float)(x1 + 0.5 - CenterX); - float uGradient = WallT.UoverZstep; - float zGradient = WallT.InvZstep; - float u = (uOverZ + uGradient * (x - x1)) / (invZ + zGradient * (x - x1)); - - fixed_t value; - if (walxrepeat < 0.0) - { - float xrepeat = -walxrepeat; - value = (fixed_t)((xrepeat - u * xrepeat) * FRACUNIT); - } - else - { - value = (fixed_t)(u * walxrepeat * FRACUNIT); - } - - if (flipx) - { - value = (int)walxrepeat - 1 - value; - } - - return value + xoffset; - */ - } -#endif - double ProjectedWallTexcoords::GetRowOffset(seg_t* lineseg, FSoftwareTexture* tex, side_t::ETexpart texpart) { double yrepeat = GetYScale(lineseg->sidedef, tex, texpart);