摘要: 参考博客:(27条消息) 【Ray-Tracing In One Weekend】第8章 金属材质_杨石兴的博客-CSDN博客 反射光的方向是 v+2b,n为单位向量,因此b的长度是n点乘v,b的方向和n这个法线方向相同,v的方向指向球内,b指向球外,因此需要相减 v3d.h vec3 reflec 阅读全文
posted @ 2022-10-31 10:34 LOFU 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 完成到第七章抗锯齿的内容 #include <iostream> #include<fstream> #include<string> #include "v3d.h" #include "ray.h" #include "color.h" #include "rtweekend.h" #inclu 阅读全文
posted @ 2022-07-08 22:28 LOFU 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include<fstream> #include<string> #include "v3d.h" #include "ray.h" #include "color.h" using namespace std; // Type aliases for v 阅读全文
posted @ 2022-07-03 15:54 LOFU 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 官方教程:Ray Tracing in One Weekend 参考:【Ray Tracing in One Weekend 超详解】 光线追踪1-1 之美 - 灰信网(软件开发博客聚合) (freesion.com) 任务2 Output an Image及任务3 The vec3 Class # 阅读全文
posted @ 2022-06-26 17:08 LOFU 阅读(20) 评论(0) 推荐(1) 编辑