From b21d430116401569e99903f5f20f2f4c3cb067de Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 24 Aug 2021 19:08:23 +0900 Subject: [PATCH] Minor fix/refactoring --- example02_threaded_raytracing/src/rayTracer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example02_threaded_raytracing/src/rayTracer.cpp b/example02_threaded_raytracing/src/rayTracer.cpp index 449126d..5208c3c 100644 --- a/example02_threaded_raytracing/src/rayTracer.cpp +++ b/example02_threaded_raytracing/src/rayTracer.cpp @@ -302,8 +302,8 @@ Ex02::RT::Image Ex02::RT::renderColorsWithSpheres(unsigned int outputWidth, lights[2].color.r = 0.0F; lights[2].color.g = 0.0F; lights[2].color.b = 1.0F; - lights[2].pos.x = static_cast(std::cos(PI * 2.0 / 3.0F)); - lights[2].pos.y = static_cast(std::sin(PI * 2.0 / 3.0F)); + lights[2].pos.x = std::cos(PI * 2.0F / 3.0F); + lights[2].pos.y = std::sin(PI * 2.0F / 3.0F); lights[2].pos.z = 0.0F; lights[2].falloffStart = 3.0F; lights[2].falloffEnd = 7.0F;