Fix some more compile errors

This commit is contained in:
Magnus Norddahl 2021-11-12 16:24:27 +01:00
parent e54477cb93
commit 2a91f530c9
2 changed files with 3 additions and 2 deletions

View file

@ -257,7 +257,7 @@ void CPURaytracer::RunLightTrace(CPUTraceState& state)
for (uint32_t i = 0; i < state.SampleCount; i++)
{
Vec2 offset = (Hammersley(i, state.SampleCount) - 0.5) * state.SampleDistance;
Vec2 offset = (Hammersley(i, state.SampleCount) - 0.5f) * state.SampleDistance;
Vec3 origin2 = origin + e0 * offset.x + e1 * offset.y;
Vec3 start = origin2;
@ -313,7 +313,7 @@ void CPURaytracer::RunLightTrace(CPUTraceState& state)
e0 = Vec3::Cross(normal, e1);
for (uint32_t i = 0; i < state.SampleCount; i++)
{
Vec2 offset = (Hammersley(i, state.SampleCount) - 0.5) * state.SampleDistance;
Vec2 offset = (Hammersley(i, state.SampleCount) - 0.5f) * state.SampleDistance;
Vec3 origin2 = origin + e0 * offset.x + e1 * offset.y;
LevelTraceHit hit = Trace(origin2, light.Origin);

View file

@ -11,6 +11,7 @@
#include <map>
#include <vector>
#include <algorithm>
#include <limits>
#include <zlib.h>
#include "glsl_rgen_bounce.h"
#include "glsl_rgen_light.h"