float lightmap seems it does have little boost on fps

This commit is contained in:
minjaesong
2017-07-09 00:51:25 +09:00
parent 482cb5ff21
commit d0b8f811c8
7 changed files with 148 additions and 179 deletions

View File

@@ -1494,11 +1494,11 @@ fun interpolateLinear(scale: Double, startValue: Double, endValue: Double): Doub
if (startValue == endValue) {
return startValue
}
if (scale <= 0f) {
if (scale <= 0.0) {
return startValue
}
if (scale >= 1f) {
if (scale >= 1.0) {
return endValue
}
return (1f - scale) * startValue + scale * endValue
return (1.0 - scale) * startValue + scale * endValue
}