Fix minor int to float downcasting warnings.
parent
2f8d848300
commit
17da34eb15
|
@ -178,7 +178,7 @@ public:
|
|||
Spectrum *target = (Spectrum *) bitmap->getFloatData();
|
||||
Spectrum value =
|
||||
m_radiance * (2 * M_PI * (1-std::cos(m_theta))) *
|
||||
(bitmap->getWidth() * bitmap->getHeight())
|
||||
static_cast<Float>(bitmap->getWidth() * bitmap->getHeight())
|
||||
/ (2 * M_PI * M_PI * nSamples);
|
||||
|
||||
for (size_t i=0; i<nSamples; ++i) {
|
||||
|
|
|
@ -173,7 +173,7 @@ public:
|
|||
|
||||
Spectrum value =
|
||||
sunRadiance * (2 * M_PI * (1-std::cos(theta))) *
|
||||
(bitmap->getWidth() * bitmap->getHeight())
|
||||
static_cast<Float>(bitmap->getWidth() * bitmap->getHeight())
|
||||
/ (2 * M_PI * M_PI * nSamples);
|
||||
|
||||
for (size_t i=0; i<nSamples; ++i) {
|
||||
|
|
Loading…
Reference in New Issue