Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
辰熙 周 committed Mar 2, 2023
1 parent 77894c0 commit 69ae992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Moer-lite的框架基于Moer主干:https://github.com/NJUCG/Moer .
请参考Lab0的编译使用过程。

## 示例场景
目前有三个示例场景
目前有四个示例场景
- `examples/area-lights`:提供了一个面光源照亮一个Stanford bunny的场景;
- `examples/two-spotlights`:提供了一个有着两个点光源的场景;
- `examples/bunny`:提供了一个使用环境光(environment lighting)照亮Stanford bunny的场景。

- `examples/cornell-box`:提供了一个使用whitted-style ray tracing的cornell-box场景
## BUG反馈

如果发现Moer-lite框架存在bug,或者有任何架构上的改进意见,任何更好的第三方库……
Expand Down
1 change: 0 additions & 1 deletion src/FunctionLayer/Shape/Cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ bool Cube::rayIntersectShape(const Ray &ray, float *distance, int *primID,
direction = Vector3f{d[0], d[1], d[2]};

float tNear = ray.tNear, tFar = ray.tFar;

for (int i = 0; i < 3; ++i) {
float invDir = 1.f / direction[i]; // 没有做除0检查,该算法貌似不需要?
float t0 = (boxMin[i] - origin[i]) * invDir,
Expand Down

0 comments on commit 69ae992

Please sign in to comment.