文章分类 -  Games101作业解析

Games101作业
摘要:1.作业要求 IntersectP(const Ray& ray, const Vector3f& invDir, const std::array<int, 3>& dirIsNeg) in the Bounds3.hpp: 这个函数的 作用是判断包围盒 BoundingBox 与光线是否相交,你 阅读全文
posted @ 2024-01-23 19:12 Kellen_Gram 阅读(270) 评论(0) 推荐(0) 编辑
摘要:1. 作业要求 Renderer.cpp 中的 Render():这里你需要为每个像素生成一条对应的光线,然后调用函数 castRay() 来得到颜色,最后将颜色存储在帧缓冲区的相 应像素中。 Triangle.hpp 中的 rayTriangleIntersect(): v0, v1, v2 是三 阅读全文
posted @ 2024-01-20 12:26 Kellen_Gram 阅读(316) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示