diff --git a/lib/rendering/shading/bsdf/Bsdf.cc b/lib/rendering/shading/bsdf/Bsdf.cc index 6e8ec51..cb843de 100644 --- a/lib/rendering/shading/bsdf/Bsdf.cc +++ b/lib/rendering/shading/bsdf/Bsdf.cc @@ -154,7 +154,10 @@ Bsdf::show(const std::string &sceneClass, const std::string &name, std::ostream& const BsdfLobe* const lobe = mLobeArray[i]; if (lobe->getLightSet()) { os << " : '" << lobe->getLightSet()->getName() << "'\n"; + } else { + os << " : ''\n"; } + os << "label: " << lobe->getLabel() << "\n"; lobe->show(os, ""); os << "\n"; } diff --git a/lib/rendering/shading/ispc/bsdf/Bsdf.ispc b/lib/rendering/shading/ispc/bsdf/Bsdf.ispc index 8927f2e..6f21072 100644 --- a/lib/rendering/shading/ispc/bsdf/Bsdf.ispc +++ b/lib/rendering/shading/ispc/bsdf/Bsdf.ispc @@ -58,6 +58,7 @@ Bsdf_show(const varying Bsdf &bsdf, } else { print(" : ''\n"); } + print("label: %\n", lobe->mLabel); BsdfLobe_show(lobe, 0); print("\n"); }