MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / eval

Method eval

src/testrender/shading.cpp:624–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622 return 1 - fresnel_dielectric(cosNO, eta);
623 }
624 virtual float eval (const OSL::ShaderGlobals& sg, const OSL::Vec3& wi, float& pdf) const {
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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected