From 0f9e88ccf0510ab4d830529fa539ef6db715f988 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 16 Sep 2020 20:52:12 +0200 Subject: Added first draft of spectral lightning --- app/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/main.cpp b/app/main.cpp index e53b8ad..16de1f6 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -24,12 +24,13 @@ int main(int argc, char *argv[]) Material blue(Color(0.3, 0.3, 1), 1); + Material green(Color(0.3, 1, 0.3), 0, 1, 50); Material red(Color(1, 0.3, 0.3), 1); Material white(Color(1, 1, 1), 1); - Material em(Color(1, 1, 1), 0, 2); + Material em(Color(1, 1, 1), 0, 0, 0, 2); scn.addShape(new Sphere(red, Vec3d(2, 6, -1), 1)); - scn.addShape(new Sphere(white, Vec3d(0, 4, -1), 1.3)); + scn.addShape(new Sphere(green, Vec3d(0, 4, -1), 1.3)); scn.addShape(new Sphere(white, Vec3d(-2, 5, -2), 1.3)); scn.addShape(new Sphere(blue, Vec3d(0, 7, 0), 0.5)); -- cgit v1.2.3