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