| 634 | struct Transparent : public BSDF { |
| 635 | Transparent(const int& dummy) : BSDF() {} |
| 636 | virtual float eval (const OSL::ShaderGlobals& sg, const OSL::Vec3& wi, float& pdf) const { |
| 637 | return pdf = 0; |
| 638 | } |
| 639 | virtual float sample(const OSL::ShaderGlobals& sg, float rx, float ry, float rz, OSL::Dual2<OSL::Vec3>& wi, float& pdf) const { |
| 640 | wi = OSL::Dual2<OSL::Vec3>(sg.I, sg.dIdx, sg.dIdy); |
| 641 | pdf = std::numeric_limits<float>::infinity(); |
nothing calls this directly
no outgoing calls
no test coverage detected