|
|
|
@ -16,8 +16,8 @@ public class Main {
|
|
|
|
|
var scene = new Scene(
|
|
|
|
|
new Sphere(0, -100.5, 1, 100, new LambertianMaterial(new Color(0.8, 0.8, 0.0))),
|
|
|
|
|
new Sphere(0, 0, 1.2, 0.5, new LambertianMaterial(new Color(0.1, 0.2, 0.5))),
|
|
|
|
|
new Sphere(-1, 0, 1, 0.5, new MetallicMaterial(new Color(0.8, 0.8, 0.8))),
|
|
|
|
|
new Sphere(1, 0, 1, 0.5, new MetallicMaterial(new Color(0.8, 0.6, 0.2)))
|
|
|
|
|
new Sphere(-1, 0, 1, 0.5, new MetallicMaterial(new Color(0.8, 0.8, 0.8), 0.3)),
|
|
|
|
|
new Sphere(1, 0, 1, 0.5, new MetallicMaterial(new Color(0.8, 0.6, 0.2), 1.0))
|
|
|
|
|
);
|
|
|
|
|
var camera = new Camera(512, 2, 16 / 9d);
|
|
|
|
|
|
|
|
|
|