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

Function MatteMaterial__eval

tutorials/pathtracer/pathtracer_device.cpp:504–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504Vec3fa MatteMaterial__eval(ISPCMatteMaterial* This, const BRDF& brdf, const Vec3fa& wo, const DifferentialGeometry& dg, const Vec3fa& wi)
505{
506 Lambertian lambertian = make_Lambertian(Vec3fa((Vec3fa)This->reflectance));
507 return Lambertian__eval(&lambertian,wo,dg,wi);
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{

Callers 1

Material__evalFunction · 0.85

Calls 3

make_LambertianFunction · 0.85
Lambertian__evalFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected