Timestamp:
Apr 16, 2021, 6:01:30 PM (3 years ago)
Author:
wraitii
Message:

Rework rP25266

Following comments by @vladislavbelov.

Differential Revision: https://code.wildfiregames.com/D3860

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/renderer/SilhouetteRenderer.cpp

    r25269 r25278  
    191191    // given the symmetry of the bounding box
    192192
    193     occluder.x0 = Clamp(x0, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
    194     occluder.y0 = Clamp(y0, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
    195     occluder.x1 = Clamp(x1, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
    196     occluder.y1 = Clamp(y1, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
     193    occluder.x0 = Clamp(x0, std::numeric_limits<u16>::min(), );
     194    occluder.y0 = Clamp(y0, std::numeric_limits<u16>::min(), );
     195    occluder.x1 = Clamp(x1, std::numeric_limits<u16>::min(), );
     196    occluder.y1 = Clamp(y1, std::numeric_limits<u16>::min(), );
    197197    occluder.z = z0;
    198198}
     
    203203    u16 x = g_HalfMaxCoord + static_cast<int>(g_HalfMaxCoord * svec.X / svec.W);
    204204    u16 y = g_HalfMaxCoord + static_cast<int>(g_HalfMaxCoord * svec.Y / svec.W);
    205     caster.x = Clamp(x, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
    206     caster.y = Clamp(y, std::numeric_limits<u16>::min(), g_MaxCoord - 1);
     205    caster.x = Clamp(x, std::numeric_limits<u16>::min(), );
     206    caster.y = Clamp(y, std::numeric_limits<u16>::min(), );
    207207    caster.z = svec.Z / svec.W;
    208208}
Note: See TracChangeset for help on using the changeset viewer.