Add more elements to the test_scene
authorLukas Jiriste <ljiriste@student.42prague.com>
Sat, 4 Jan 2025 12:39:49 +0000 (13:39 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Tue, 7 Jan 2025 11:37:30 +0000 (12:37 +0100)
Now cylinder and sphere have lights inside and the scene is enclosed in
another sphere.
The cylinder from inside is curious. The bases have very dark edges,
which looks obviously wrong, but it is direct consequence of only
tracing rays from object to lights. Proper ambient lighting would fix
this (but is outside of the scope of miniRT).

test_scene.rt

index aac6168e3cdeabd10a78b78e4f9e543ba134d7c6..db3edf212923d596b4be1f1cb0366e7781d32153 100644 (file)
@@ -3,6 +3,10 @@ L 3,1,0 0.4 0,0,255
 C 0,0,0 1,0,0 90
 sp 3,0.5,-0.7 0.6 255,255,255
 L  3,0.5,-0.5 0.01 0,255,0
+L  3,0.5,-0.9 0.01 255,0,0
 pl 0,0,-1 0,0,1 255,255,255
 cy 3,-0.5,-0.7 0,0,1 0.5 0.6 255,255,255
+L  3,-0.5,-0.5 0.01 0,255,0
+L  3,-0.5,-0.9 0.01 0,0,255
 A 0.01 255,255,255
+sp 0,0,0 20 0,100,200