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

Function DielectricReflection__sample

tutorials/pathtracer/pathtracer_device.cpp:262–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262inline Vec3fa DielectricReflection__sample(const DielectricReflection* This, const Vec3fa &wo, const DifferentialGeometry &dg, Sample3f &wi, const Vec2f &s)
263{
264 const float cosThetaO = clamp(dot(wo,dg.Ns));
265 wi = make_Sample3f(reflect(wo,dg.Ns,cosThetaO),1.0f);
266 return Vec3fa(fresnelDielectric(cosThetaO,This->eta));
267}
268
269inline void DielectricReflection__Constructor(DielectricReflection* This,
270 const float etai,

Callers 1

Calls 6

make_Sample3fFunction · 0.85
reflectFunction · 0.85
fresnelDielectricFunction · 0.85
clampFunction · 0.50
dotFunction · 0.50
Vec3faClass · 0.50

Tested by

no test coverage detected