WISP_NAMESPACE_BEGIN Light::Light(const ParamSet& paramSet) { m_lightToWorld = paramSet.getTransform("toWorld", Transform()); m_worldToLight = m_lightToWorld.inverse(); m_intersectable = false; }
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(); }