• Steve Branson's avatar
    Temporary fix for mesh rasterization bug for traingles partially behind the camera · 9aaba048
    Steve Branson authored
    Summary: A triangle is culled if any vertex in a triangle is behind the camera.  This fixes incorrect rendering of triangles that are partially behind the camera, where screen coordinate calculations are strange.  It doesn't work for triangles that are partially behind the camera but still intersect with the view frustum.
    
    Reviewed By: nikhilaravi
    
    Differential Revision: D22856181
    
    fbshipit-source-id: a9cbaa1327d89601b83d0dfd3e4a04f934a4a213
    9aaba048
test_rasterize_meshes.py 52.5 KB