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

Function Lambertian__sample

tutorials/pathtracer/pathtracer_device.cpp:295–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295inline Vec3fa Lambertian__sample(const Lambertian* This,
296 const Vec3fa &wo,
297 const DifferentialGeometry &dg,
298 Sample3f &wi,
299 const Vec2f &s)
300{
301 wi = cosineSampleHemisphere(s.x,s.y,dg.Ns);
302 return Lambertian__eval(This, wo, dg, wi.v);
303}
304
305inline void Lambertian__Constructor(Lambertian* This, const Vec3fa& R)
306{

Callers 2

MatteMaterial__sampleFunction · 0.85

Calls 2

cosineSampleHemisphereFunction · 0.85
Lambertian__evalFunction · 0.85

Tested by

no test coverage detected