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