add another sphere
This commit is contained in:
parent
e3a8b08381
commit
5e52db65d4
@ -10,7 +10,10 @@ import java.nio.file.Path;
|
|||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) throws IOException {
|
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 camera = new Camera(256, 2, 16 / 9d);
|
||||||
|
|
||||||
var image = scene.render(camera);
|
var image = scene.render(camera);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user