mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 06:41:37 +00:00
Fix some more compile errors
This commit is contained in:
parent
e54477cb93
commit
2a91f530c9
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue