mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
float lightmap seems it does have little boost on fps
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user