Using explicit values, fixing GCC errors

This commit is contained in:
mlefrancois 2022-03-16 09:07:38 +01:00
parent 08dab08b0b
commit 61fc360865

View file

@ -79,14 +79,14 @@ public:
// Information pushed at each draw call // Information pushed at each draw call
PushConstantRaster m_pcRaster{ PushConstantRaster m_pcRaster{
{1}, // Identity matrix {1}, // Identity matrix
{10.f, 15.f, 8.f}, // light position {10.f, 15.f, 8.f}, // light position
0, // instance Id 0, // instance Id
{1, 0, 0}, // lightDirection; {-1.f, -1.f, -.4f}, // lightDirection;
{cos(deg2rad(12.5f))}, // lightSpotCutoff; 0.939692621f, // {cos(deg2rad(20.0f))}, // lightSpotCutoff;
{cos(deg2rad(17.5f))}, // lightSpotOuterCutoff; 0.866025404f, // {cos(deg2rad(30.0f))}, // lightSpotOuterCutoff;
100.f, // light intensity 100.f, // light intensity
0 // light type 0 // light type
}; };
// Array of objects and instances in the scene // Array of objects and instances in the scene