Skip to content

Commit

Permalink
fix: ScalarFloat in packet_spectral
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Zirr committed Apr 15, 2020
1 parent a73b0bd commit e3021c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emitters/sky.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class SkyEmitter final : public Emitter<Float, Spectrum> {
} else {
for (int i=0; i<SpectrumSamples; ++i) {
// note: arbitrary number of samples not supported for vector eval at the moment
Float band = srgb_model_eval< mitsuba::Spectrum<ScalarFloat, 1> >(m_albedo, m_wavelengths[i])[0];
ScalarFloat band = srgb_model_eval< mitsuba::Spectrum<ScalarFloat, 1> >(m_albedo, m_wavelengths[i])[0];
m_state[i] = arhosekskymodelstate_alloc_init(
m_turbidity, band, sunElevation);
}
Expand Down

0 comments on commit e3021c0

Please sign in to comment.