weather to not use expensive math; colormap now also holds cvec

This commit is contained in:
Minjae Song
2019-06-05 16:28:35 +09:00
committed by minjaesong
parent b0c6ce29a8
commit 772ce19eab
2 changed files with 7 additions and 2 deletions

View File

@@ -194,7 +194,7 @@ internal object WeatherMixer : RNGConsumer {
// interpolate R, G, B and A
val scale = (timeInSec % dataPointDistance).toFloat() / dataPointDistance // [0.0, 1.0]
val newCol = CIELuvUtil.getGradient(scale, colourThis, colourNext)
val newCol = colourThis.cpy().lerp(colourNext, scale)//CIELuvUtil.getGradient(scale, colourThis, colourNext)
/* // very nice monitor code
// 65 -> 66 | 300 | 19623 | RGB8(255, 0, 255) -[41%]-> RGB8(193, 97, 23) | * `230`40`160`