diff --git a/src/librender/scene.cpp b/src/librender/scene.cpp index 51644e37..929946a7 100644 --- a/src/librender/scene.cpp +++ b/src/librender/scene.cpp @@ -284,7 +284,7 @@ void Scene::initialize() { if (m_luminaires.size() == 0) { Log(EWarn, "No luminaires found -- adding a sky luminaire"); Properties skyProps("sky"); - skyProps.setFloat("scale", 0.1f); + skyProps.setFloat("intensityScale", 0.1f); skyProps.setBoolean("extend", true); ref luminaire = static_cast( PluginManager::getInstance()->createObject(MTS_CLASS(Luminaire), skyProps)); diff --git a/src/luminaires/envmap.cpp b/src/luminaires/envmap.cpp index e61ebf4d..2091bd02 100644 --- a/src/luminaires/envmap.cpp +++ b/src/luminaires/envmap.cpp @@ -27,11 +27,18 @@ MTS_NAMESPACE_BEGIN -/** - * Basic environment map implementation without importance sampling. - * Uses the scene's bounding sphere to simulate an infinitely far-away - * light source. Expects an EXR image in latitude-longitude - * (equirectangular) format. +/*!\plugin{envmap}{Environment map luminaire} + * \parameters{ + * \parameter{intensityScale}{\Float}{ + * This parameter can be used to scale the the amount of illumination + * emitted by the luminaire. \default{1} + * } + * } + * + * This plugin implements a simple environment map luminaire with + * importance sampling. It uses the scene's bounding sphere to simulate an + * infinitely far-away light source and expects an EXR image in + * latitude-longitude (equirectangular) format. */ class EnvMapLuminaire : public Luminaire { public: diff --git a/src/luminaires/sky.cpp b/src/luminaires/sky.cpp index eff94d6f..da4ca52e 100644 --- a/src/luminaires/sky.cpp +++ b/src/luminaires/sky.cpp @@ -56,12 +56,12 @@ MTS_NAMESPACE_BEGIN * \parameter{resolution}{\Integer}{Specifies the resolution of the precomputed * image that is used to represent the sky environment map * \default{256}} - * \parameter{scale}{\Float}{ + * \parameter{intensityScale}{\Float}{ * This parameter can be used to scale the the amount of illumination * emitted by the sky luminaire, for instance to change its units. To * switch from photometric ($\nicefrac{W}{m^2\cdot sr}$) * to arbitrary but convenient units in the $[0,1]$ range, set - * this parameter to \code{1e-5}.\default{1}. + * this parameter to \code{1e-5}. \default{1} * } * } * @@ -152,7 +152,7 @@ class SkyLuminaire : public Luminaire { public: SkyLuminaire(const Properties &props) : Luminaire(props) { - m_scale = props.getFloat("scale", Float(1.0)); + m_intensityScale = props.getFloat("intensityScale", Float(1.0)); m_turbidity = props.getFloat("turbidity", Float(3.0)); if (m_turbidity < 1 || m_turbidity > 30) Log(EError, "The turbidity parameter must be in the range [1,30]!"); @@ -192,7 +192,7 @@ public: SkyLuminaire(Stream *stream, InstanceManager *manager) : Luminaire(stream, manager) { - m_scale = stream->readFloat(); + m_intensityScale = stream->readFloat(); m_turbidity = stream->readFloat(); m_thetaS = stream->readFloat(); m_phiS = stream->readFloat(); @@ -204,7 +204,7 @@ public: void serialize(Stream *stream, InstanceManager *manager) const { Luminaire::serialize(stream, manager); - stream->writeFloat(m_scale); + stream->writeFloat(m_intensityScale); stream->writeFloat(m_turbidity); stream->writeFloat(m_thetaS); stream->writeFloat(m_phiS); @@ -275,7 +275,7 @@ public: Float theta = (i+.5f)*factor.x; for (int j=0; j