Skip to content

Commit

Permalink
Revert "Map Renderer|Fixed: No so-called "fake contrast" for middle s…
Browse files Browse the repository at this point in the history
…urfaces of two-sided lines"

This reverts commit d3b4243.

On closer inspection revealed this to be incorrect.
  • Loading branch information
danij-deng committed Aug 12, 2012
1 parent 311eee9 commit e1603af
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions doomsday/engine/portable/src/render/rend_main.c
Expand Up @@ -1753,17 +1753,10 @@ static boolean rendHEdgeSection(HEdge* hedge, SideDefSection section,
SideDef* frontSide = HEDGE_SIDEDEF(hedge);
float deltaL, deltaR;

/**
* Do not apply an angle based lighting delta if:
* a) This surface is the middle wall section of a two-sided line. The
* id tech 1 software renderer does not apply this effect to such
* surfaces. @todo Make this a sidedef flag?
* b) This surface's material has been chosen as a HOM fix (we must remain
* consistent with the lighting applied to the relative back plane (on
* this half-edge's back side)).
*/
if(frontSide && isTwoSided &&
(section == SS_MIDDLE || (surface->inFlags & SUIF_FIX_MISSING_MATERIAL)))
// Do not apply an angle based lighting delta if this surface's material
// has been chosen as a HOM fix (we must remain consistent with the lighting
// applied to the back plane (on this half-edge's back side)).
if(frontSide && isTwoSided && section != SS_MIDDLE && (surface->inFlags & SUIF_FIX_MISSING_MATERIAL))
{
deltaL = deltaR = 0;
}
Expand Down

0 comments on commit e1603af

Please sign in to comment.