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

Function MatteMaterial__sample

tutorials/pathtracer/pathtracer_device.cpp:510–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510Vec3fa MatteMaterial__sample(ISPCMatteMaterial* This, const BRDF& brdf, const Vec3fa& Lw, const Vec3fa& wo, const DifferentialGeometry& dg, Sample3f& wi_o, Medium& medium, const Vec2f& s)
511{
512 Lambertian lambertian = make_Lambertian(Vec3fa((Vec3fa)This->reflectance));
513 return Lambertian__sample(&lambertian,wo,dg,wi_o,s);
514}
515
516////////////////////////////////////////////////////////////////////////////////
517// Mirror Material //

Callers 1

Material__sampleFunction · 0.85

Calls 3

make_LambertianFunction · 0.85
Lambertian__sampleFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected