MCPcopy Create free account
hub / github.com/RenderKit/embree / Lambertian__eval

Function Lambertian__eval

tutorials/pathtracer/pathtracer_device.cpp:289–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287};
288
289inline Vec3fa Lambertian__eval(const Lambertian* This,
290 const Vec3fa &wo, const DifferentialGeometry &dg, const Vec3fa &wi)
291{
292 return This->R * (1.0f/(float)(float(M_PI))) * clamp(dot(wi,dg.Ns));
293}
294
295inline Vec3fa Lambertian__sample(const Lambertian* This,
296 const Vec3fa &wo,

Callers 3

Lambertian__sampleFunction · 0.85
MatteMaterial__evalFunction · 0.85

Calls 2

clampFunction · 0.50
dotFunction · 0.50

Tested by

no test coverage detected