From e3021c041abd12c81721448377651aca8e864110 Mon Sep 17 00:00:00 2001 From: Tobias Zirr Date: Wed, 15 Apr 2020 12:49:50 +0200 Subject: [PATCH] fix: ScalarFloat in packet_spectral --- src/emitters/sky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }