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

Function Minneart__sample

tutorials/pathtracer/pathtracer_device.cpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182inline Vec3fa Minneart__sample(const Minneart* This,
183 const Vec3fa &wo,
184 const DifferentialGeometry &dg,
185 Sample3f &wi,
186 const Vec2f &s)
187{
188 wi = cosineSampleHemisphere(s.x,s.y,dg.Ns);
189 return Minneart__eval(This, wo, dg, wi.v);
190}
191
192inline void Minneart__Constructor(Minneart* This, const Vec3fa& R, const float b)
193{

Callers 1

VelvetMaterial__sampleFunction · 0.85

Calls 2

cosineSampleHemisphereFunction · 0.85
Minneart__evalFunction · 0.85

Tested by

no test coverage detected