From 61fc360865ac0d9fbc337af5785c25848e19a051 Mon Sep 17 00:00:00 2001 From: mlefrancois Date: Wed, 16 Mar 2022 09:07:38 +0100 Subject: [PATCH] Using explicit values, fixing GCC errors --- ray_tracing__advance/hello_vulkan.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ray_tracing__advance/hello_vulkan.h b/ray_tracing__advance/hello_vulkan.h index 86b467a..c6bc443 100644 --- a/ray_tracing__advance/hello_vulkan.h +++ b/ray_tracing__advance/hello_vulkan.h @@ -79,14 +79,14 @@ public: // Information pushed at each draw call PushConstantRaster m_pcRaster{ - {1}, // Identity matrix - {10.f, 15.f, 8.f}, // light position - 0, // instance Id - {1, 0, 0}, // lightDirection; - {cos(deg2rad(12.5f))}, // lightSpotCutoff; - {cos(deg2rad(17.5f))}, // lightSpotOuterCutoff; - 100.f, // light intensity - 0 // light type + {1}, // Identity matrix + {10.f, 15.f, 8.f}, // light position + 0, // instance Id + {-1.f, -1.f, -.4f}, // lightDirection; + 0.939692621f, // {cos(deg2rad(20.0f))}, // lightSpotCutoff; + 0.866025404f, // {cos(deg2rad(30.0f))}, // lightSpotOuterCutoff; + 100.f, // light intensity + 0 // light type }; // Array of objects and instances in the scene