1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
// Copyright 2009 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "render/RendererShared.h"
#ifdef __cplusplus
namespace ispc {
#endif // __cplusplus
struct PathTracer
{
Renderer super;
uint32 rouletteDepth; // path depth from which on RR is used
uint32 maxScatteringEvents;
float maxRadiance;
// coefficients of plane equation defining geometry to catch shadows for
// compositing; disabled if normal is zero-length
vec4f shadowCatcherPlane;
bool shadowCatcher; // preprocessed
bool backgroundRefraction;
bool limitIndirectLightSamples;
int32 numLightSamples; // number of light samples used for NEE
#ifdef __cplusplus
PathTracer()
: rouletteDepth(5),
maxScatteringEvents(20),
maxRadiance(inf),
shadowCatcherPlane(0.f),
shadowCatcher(false),
backgroundRefraction(false),
limitIndirectLightSamples(true),
numLightSamples(-1)
{}
};
} // namespace ispc
#else
};
#endif // __cplusplus
|