Exemplo n.º 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();
 }
Exemplo n.º 2
0
 AreaLight(const ParamSet& paramSet) : Light(paramSet), m_shape(NULL)
 {
     m_radiance = paramSet.getColor("radiance", Color3f(1.f));
     m_intersectable = true;
 }