diff --git a/src/emitters/sky.cpp b/src/emitters/sky.cpp index b86f2fd11..101c10792 100644 --- a/src/emitters/sky.cpp +++ b/src/emitters/sky.cpp @@ -231,7 +231,7 @@ class SkyEmitter final : public Emitter { } else { for (int i=0; i >(m_albedo, m_wavelengths[i])[0]; + ScalarFloat band = srgb_model_eval< mitsuba::Spectrum >(m_albedo, m_wavelengths[i])[0]; m_state[i] = arhosekskymodelstate_alloc_init( m_turbidity, band, sunElevation); }