| 625 | return pdf = 0; |
| 626 | } |
| 627 | virtual float sample(const OSL::ShaderGlobals& sg, float rx, float ry, float rz, OSL::Dual2<OSL::Vec3>& wi, float& pdf) const { |
| 628 | OSL::Dual2<OSL::Vec3> I = OSL::Dual2<OSL::Vec3>(sg.I, sg.dIdx, sg.dIdy); |
| 629 | pdf = std::numeric_limits<float>::infinity(); |
| 630 | return fresnel_refraction(I, N, eta, wi); |
| 631 | } |
| 632 | }; |
| 633 | |
| 634 | struct Transparent : public BSDF { |
nothing calls this directly
no test coverage detected