shadow-lr

Results 6 issues of shadow-lr

url is https://raytracing.github.io/books/RayTracingTheRestOfYourLife.html#cleaninguppdfmanagement/diffuseversusspecular ![image](https://user-images.githubusercontent.com/58605529/162881041-6c38529f-37a4-4bc4-bef4-5484cd96a187.png) The correct way to write it should be: ```cpp srec.pdf_ptr = make_shared(rec.normal); ``` ![image](https://user-images.githubusercontent.com/58605529/162881150-449db8fa-5816-431c-bff0-7b9bb840e43e.png)

book 3: Your Life

![image](https://user-images.githubusercontent.com/58605529/115720162-5c6a3280-a3af-11eb-92ad-bd5b2e337f30.png) Example_33_ProjectWindowItemOnGUI编辑器可能有可以改善的地方,当项目中的文件夹大小达到一定程度时(1g以上),此时如果导入或删除资源或者脚本编译时,编辑器的逻辑,会清掉之前所有计算的结果,然后重新计算所有文件夹的大小,会使得创建个新文件夹会等待个一两秒的时间,我觉得可以弄个缓存机制,保留之前的计算信息然后局部更新大小,猜测应该可以用文件夹的结构构造一个线段树然后局部更新?或者缓存,时间戳好像也可以

你好github主,我注意到在你的项目中`triangle::hit`中,有关于判断det为负的情况,并将他取反尝试矫正成正确的情况。起初我也参考了你的`triangle::hit`实现,但我发现当我在加载小球模型的时候,边缘出现了不正确的情况,以及在地板上也出现了不正确的情况。不知你是否也遇到或者知晓这种情况? 以下是跟github主相同逻辑判断`triangle::hit`生成的效果图: ![test-ball](https://user-images.githubusercontent.com/58605529/165498527-1012f4cf-f9f0-4a30-92e1-49185f08c637.png) 以下是我修改`triangle::hit`中部分代码后生成的效果图: ![test-ball-temp](https://user-images.githubusercontent.com/58605529/165498552-cf043309-64e5-454d-bb77-fb66478e7a1d.png) 很明显,修改之后的效果更符合我预期的样子: 以下是我在我的[OfflineRTLab](https://github.com/shadow-lr/OfflineRTLab)中关于`triangle::hit`修改之后的代码 ```cpp bool triangle::hit(const ray &r_in, double t_min, double t_max, hit_record &rec) const { double u, v; vec3 pvec = cross(r_in.direction(), e2); // determinant...

请问下github主能否补充模型文件呢