From fcb980b288e97c4de8fe31c119da7d7ca898d3f0 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 4 Jan 2021 22:14:14 +0100 Subject: Add a lambertian scattering function --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 885b078..5469e13 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -103,8 +103,8 @@ int main() { .viewport_height = 2.f, .proj_plane_distance = 1.f, .spheres = { - { { 0.f, 0.f, -1.f }, { { 0.f, 0.f, 1.f }, }, 0.5f }, - { { 0.f, -100.5f, -1.f }, { { 0.f, 1.f, 0.f }, }, 100.f } + { { 0.f, 0.f, -1.f }, { { 0.7f, 0.7f, 0.3f }, }, 0.5f }, + { { 0.f, -100.5f, -1.f }, { { 0.8f, 0.8f, 0.f }, }, 100.f } }, .max_bounce = max_depth, }; -- cgit v1.3