Ejemplo n.º 1
0
/**
 * Should angle based light level deltas be applied?
 */
static bool useWallSectionLightLevelDeltas(LineSide const &side, int section)
{
    // Disabled?
    if(rendLightWallAngle <= 0)
        return false;

    // Never if the surface's material was chosen as a HOM fix (lighting must
    // be consistent with that applied to the relative back sector plane).
    if(side.surface(section).hasFixMaterial() &&
       side.hasSector() && side.back().hasSector())
    {
        Sector &backSector = side.back().sector();
        if(backSector.floor().height() < backSector.ceiling().height())
            return false;
    }

    return true;
}