MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / IsLastPathVertex

Method IsLastPathVertex

src/slg/utils/pathdepthinfo.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool PathDepthInfo::IsLastPathVertex(const PathDepthInfo &maxPathDepth, const BSDFEvent possibleEvents) const {
48 return (depth + 1 >= maxPathDepth.depth) ||
49 ((possibleEvents & DIFFUSE) && (diffuseDepth + 1 >= maxPathDepth.diffuseDepth)) ||
50 ((possibleEvents & GLOSSY) && (glossyDepth + 1 >= maxPathDepth.glossyDepth)) ||
51 ((possibleEvents & SPECULAR) && (specularDepth + 1 >= maxPathDepth.specularDepth));
52}
53
54u_int PathDepthInfo::GetRRDepth() const {
55 return diffuseDepth + glossyDepth;

Callers 3

Film2SceneRadiusThreadFunction · 0.80
RenderFuncMethod · 0.80
RenderEyeSampleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected