| 287 | }; |
| 288 | |
| 289 | inline Vec3fa Lambertian__eval(const Lambertian* This, |
| 290 | const Vec3fa &wo, const DifferentialGeometry &dg, const Vec3fa &wi) |
| 291 | { |
| 292 | return This->R * (1.0f/(float)(float(M_PI))) * clamp(dot(wi,dg.Ns)); |
| 293 | } |
| 294 | |
| 295 | inline Vec3fa Lambertian__sample(const Lambertian* This, |
| 296 | const Vec3fa &wo, |
no test coverage detected