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

Function Velvety__sample

tutorials/pathtracer/pathtracer_device.cpp:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229inline Vec3fa Velvety__sample(const Velvety* This,
230 const Vec3fa &wo,
231 const DifferentialGeometry &dg,
232 Sample3f &wi,
233 const Vec2f &s)
234{
235 wi = cosineSampleHemisphere(s.x,s.y,dg.Ns);
236 return Velvety__eval(This, wo, dg, wi.v);
237}
238
239inline void Velvety__Constructor(Velvety* This, const Vec3fa& R, const float f)
240{

Callers 1

VelvetMaterial__sampleFunction · 0.85

Calls 2

cosineSampleHemisphereFunction · 0.85
Velvety__evalFunction · 0.85

Tested by

no test coverage detected