示例#1
0
 HeterogeneousMedium(const ParamSet& paramSet)
 {
     m_albedo = paramSet.getColor("albedo");
     m_filename = paramSet.getString("filename");
     m_densityMultiplier = paramSet.getFloat("densityMultiplier", 1.0f);
     m_worldToMedium = paramSet.getTransform("toWorld", Transform()).inverse();
 }
示例#2
0
 AreaLight(const ParamSet& paramSet) : Light(paramSet), m_shape(NULL)
 {
     m_radiance = paramSet.getColor("radiance", Color3f(1.f));
     m_intersectable = true;
 }