Skip to content

Commit

Permalink
Switch to MFP parameterization in SSS material
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Dec 15, 2016
1 parent 086a764 commit 37433d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/appleseed-max-impl/sssmtl/appleseedsssmtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,17 +599,17 @@ asf::auto_release_ptr<asr::Material> AppleseedSSSMtl::create_material(asr::Assem
{
asr::ParamArray bssrdf_params;
bssrdf_params.insert("weight", m_sss_amount / 100.0f);
bssrdf_params.insert("dmfp_multiplier", std::max(m_sss_scale, 0.1f));
bssrdf_params.insert("mfp_multiplier", std::max(m_sss_scale, 0.1f));
bssrdf_params.insert("ior", m_sss_ior);

// Diffuse mean free path.
if (is_bitmap_texture(m_sss_scattering_color_texmap))
bssrdf_params.insert("dmfp", insert_texture_and_instance(assembly, m_sss_scattering_color_texmap));
bssrdf_params.insert("mfp", insert_texture_and_instance(assembly, m_sss_scattering_color_texmap));
else
{
const auto color_name = std::string(name) + "_bssrdf_dmfp";
const auto color_name = std::string(name) + "_bssrdf_mfp";
insert_color(assembly, m_sss_scattering_color, color_name.c_str());
bssrdf_params.insert("dmfp", color_name);
bssrdf_params.insert("mfp", color_name);
}

// Reflectance.
Expand Down

0 comments on commit 37433d9

Please sign in to comment.