| 260 | } |
| 261 | |
| 262 | inline 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 | |
| 269 | inline void DielectricReflection__Constructor(DielectricReflection* This, |
| 270 | const float etai, |
no test coverage detected