#3473 Score: 0
zsw
Participant
-2 pt

不,我没有sample_frame_buffer 我直接算的color
一个像素分成4块,然后每个子像素判断在不在三角行里面,如果在 那么k++;
如果不在,那么就取出sampledepthbuffer中的最前面的一个颜色,就是outsidecolor,
然后在setpixel的时候set_pixel(Vector3f(i,j,z_interpolated),t.getColor()*k+outsidecolor*(1-k));

This post has received 1 vote up and 1 vote down.