From a3c5b5993375197a4618ea90cd7ba74053cff15d Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Sat, 4 Jan 2025 13:39:49 +0100 Subject: [PATCH] Add more elements to the test_scene 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_scene.rt b/test_scene.rt index aac6168..db3edf2 100644 --- a/test_scene.rt +++ b/test_scene.rt @@ -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 -- 2.30.2