From: Lukas Jiriste Date: Sat, 4 Jan 2025 12:39:49 +0000 (+0100) Subject: Add more elements to the test_scene X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=a3c5b5993375197a4618ea90cd7ba74053cff15d;p=42%2FminiRT.git 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). --- 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