double precision compilation fix
parent
88c179ab82
commit
a6f17ff0a6
|
@ -192,7 +192,7 @@ public:
|
||||||
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
|
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
|
||||||
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
|
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
|
||||||
|
|
||||||
target[pos.x + pos.y * bitmap->getWidth()] += value / std::max(1e-3f, sinTheta);
|
target[pos.x + pos.y * bitmap->getWidth()] += value / std::max((Float) 1e-3f, sinTheta);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Instantiate a nested envmap plugin */
|
/* Instantiate a nested envmap plugin */
|
||||||
|
|
|
@ -191,7 +191,7 @@ public:
|
||||||
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
|
std::min(std::max(0, (int) (sphCoords.azimuth * factor.x)), bitmap->getWidth()-1),
|
||||||
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
|
std::min(std::max(0, (int) (sphCoords.elevation * factor.y)), bitmap->getHeight()-1));
|
||||||
|
|
||||||
data[pos.x + pos.y * bitmap->getWidth()] += value / std::max(1e-3f, sinTheta);
|
data[pos.x + pos.y * bitmap->getWidth()] += value / std::max((Float) 1e-3f, sinTheta);
|
||||||
}
|
}
|
||||||
|
|
||||||
Log(EDebug, "Done (took %i ms)", timer->getMilliseconds());
|
Log(EDebug, "Done (took %i ms)", timer->getMilliseconds());
|
||||||
|
|
Loading…
Reference in New Issue