wangzr

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: 作业五 结果不对 #6605 Score: 0
    wangzr
    Participant

    intersect 里需要判断 u >= 0 && v >= 0 && (1-u-v) >= 0 && tnear >= 0 时返回true,因为这时候光线和三角形相交了(ppt13的p28有

    in reply to: 作业二:图片显示结果全黑 #5271 Score: 0
    wangzr
    Participant

    请问是depth_buffer[index]里z-interpolated里的取值加个负号吗?
    if(-z_interpolated < depth_buf[index])
    depth_buf[index] = -z_interpolated;

Viewing 2 posts - 1 through 2 (of 2 total)