| 293 | } |
| 294 | |
| 295 | inline Vec3fa Lambertian__sample(const Lambertian* This, |
| 296 | const Vec3fa &wo, |
| 297 | const DifferentialGeometry &dg, |
| 298 | Sample3f &wi, |
| 299 | const Vec2f &s) |
| 300 | { |
| 301 | wi = cosineSampleHemisphere(s.x,s.y,dg.Ns); |
| 302 | return Lambertian__eval(This, wo, dg, wi.v); |
| 303 | } |
| 304 | |
| 305 | inline void Lambertian__Constructor(Lambertian* This, const Vec3fa& R) |
| 306 | { |
no test coverage detected