mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Removed magic number
This commit is contained in:
parent
9d0706ec8b
commit
39d03ce87a
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ void LightStage::Shadow::setLight(graphics::LightPointer light) {
|
|||
}
|
||||
|
||||
void LightStage::Shadow::setMaxDistance(float value) {
|
||||
value = std::max(1e-3f, value);
|
||||
static const auto MINIMUM_MAXDISTANCE = 1e-3f;
|
||||
|
||||
value = std::max(MINIMUM_MAXDISTANCE, value);
|
||||
if (value != _maxDistance) {
|
||||
// This overlaping factor isn't really used directly for blending of shadow cascades. It's
|
||||
// just there to be sure the cascades do overlap. The blending width used is relative
|
||||
|
|
Loading…
Reference in a new issue