| 45 | } |
| 46 | |
| 47 | bool 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 | |
| 54 | u_int PathDepthInfo::GetRRDepth() const { |
| 55 | return diffuseDepth + glossyDepth; |
no outgoing calls
no test coverage detected