From 5e52db65d45b408683229fb9e6fc2a4aad40b703 Mon Sep 17 00:00:00 2001 From: jbb01 <32650546+jbb01@users.noreply.github.com> Date: Sat, 3 Aug 2024 01:53:48 +0200 Subject: [PATCH] add another sphere --- src/main/java/eu/jonahbauer/raytracing/Main.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/jonahbauer/raytracing/Main.java b/src/main/java/eu/jonahbauer/raytracing/Main.java index 7efef97..7e6c7c2 100644 --- a/src/main/java/eu/jonahbauer/raytracing/Main.java +++ b/src/main/java/eu/jonahbauer/raytracing/Main.java @@ -10,7 +10,10 @@ import java.nio.file.Path; public class Main { public static void main(String[] args) throws IOException { - var scene = new Scene(new Sphere(0, 0, 1, 0.5)); + var scene = new Scene( + new Sphere(0, 0, 1, 0.5), + new Sphere(0, -100.5, 1, 100) + ); var camera = new Camera(256, 2, 16 / 9d); var image = scene.render(camera);