Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业六,dirIsNeg是干什么的? › Reply To: 作业六,dirIsNeg是干什么的? 2020年4月8日 at 下午9:49 #5276 Score: 0 AzaurrParticipant 似乎可以不使用disIsNeg进行判断。我的做法是用t1表示光线到AABB上xMax、yMax、zMax这三个面的时间,t2表示到xMin、yMin、zMin这三个面的时间。然后分别计算光线在x、y、z三个方向进入和离开相应平面的时间tMin和tMax。最后得到进入和离开AABB的时间tEnter和tExit。 This reply was modified 4 years, 10 months ago by Azaurr. Attachments:You must be logged in to view attached files.