xwojtuss / miniRT

0 stars 0 forks source link

Plane displaying on both sides but on one side the prev_t is not calculated properly #1

Closed xwojtuss closed 3 hours ago

xwojtuss commented 4 hours ago

error in intersect_plane

xwojtuss commented 3 hours ago

ND is < or > than 0 in that cases so we just needed to change the if statement from ND <= 0 to ND == 0