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

Function MetallicPaintMaterial__eval

tutorials/pathtracer/pathtracer_device.cpp:783–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783Vec3fa MetallicPaintMaterial__eval(ISPCMetallicPaintMaterial* This, const BRDF& brdf, const Vec3fa& wo, const DifferentialGeometry& dg, const Vec3fa& wi)
784{
785 DielectricReflection reflection; DielectricReflection__Constructor(&reflection, 1.0f, This->eta);
786 DielectricLayerLambertian lambertian; DielectricLayerLambertian__Constructor(&lambertian, Vec3fa((float)1.0f), 1.0f, This->eta, make_Lambertian(Vec3fa((Vec3fa)This->shadeColor)));
787 return DielectricReflection__eval(&reflection,wo,dg,wi) + DielectricLayerLambertian__eval(&lambertian,wo,dg,wi);
788}
789
790Vec3fa MetallicPaintMaterial__sample(ISPCMetallicPaintMaterial* This, const BRDF& brdf, const Vec3fa& Lw, const Vec3fa& wo, const DifferentialGeometry& dg, Sample3f& wi_o, Medium& medium, const Vec2f& s)
791{

Callers 1

Material__evalFunction · 0.85

Calls 6

make_LambertianFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected