Add complex scene rendering example
This commit is contained in:
parent
d6636bc844
commit
301dcd3c61
@ -7,3 +7,4 @@ C implementation of the [*Ray tracing in one week-end*](https://raytracing.githu
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|
|||||||
BIN
examples/complex-scene.png
Normal file
BIN
examples/complex-scene.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 531 KiB |
4
scenes.c
4
scenes.c
@ -349,5 +349,7 @@ const Hittable *complex_scene(Arena *arena) {
|
|||||||
(Vec3){-100, 270, 395}, arena),
|
(Vec3){-100, 270, 395}, arena),
|
||||||
arena);
|
arena);
|
||||||
|
|
||||||
return objects;
|
Hittable *bvh_root = hittable_create_bvh_node(
|
||||||
|
objects->list.objects, 0, objects->list.size, 0.0, 1.0, arena);
|
||||||
|
return bvh_root;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user