i was doing software rasterization of a triangle but i didnt do a harder cases of it
what do i mean harder cases -
my 'camera' in the 3d world is like a 'pyramid' you konow what i mean - there is my eye at the 'top" of it and a rectangle of monitor screen on the 'bottom' -
hard case is when traingle crosses the monitor plane or even crosses the eye plane
or both, i do not know what to do in such cases
how do people do that
1) if my triangle crosses the monitor plane should i cut the fragment and it will make some quad instead of triangle then draw it? Or should i magnify the crossed part (some rear part and only cut that when it crosses out the eye-monitor pyramid
is this code for such clipping hard ? im a bit lost in this probably