mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
updating TODO tags
Former-commit-id: f0ce830cc72911b9c1974a394581003726dfc4e1 Former-commit-id: dfc012568d8362de583b7efa95fd79e35a22b83a
This commit is contained in:
@@ -540,13 +540,6 @@ object LightmapRenderer {
|
||||
return constructRGBFromInt(newR, newG, newB)
|
||||
}
|
||||
|
||||
// TODO LUT of 1024 entries (int resulting light, int rectified light)
|
||||
val compLut = floatArrayOf(0f, 0.61328125f, 0.6875f, 0.68359375f, 0.66015625f, 0.62109375f, 0.56640625f, 0.515625f, 0.46484375f, 0.40625f, 0.3515625f, 0.29296875f, 0.234375f, 0.17578125f, 0.1171875f, 0.0546875f, 0f)
|
||||
fun getComp(lum: Float) = FastMath.interpolateLinear(
|
||||
lum.mod(1f / compLut.size),
|
||||
compLut[lum.times(compLut.size).toInt() / compLut.size],
|
||||
compLut[lum.times(compLut.size).toInt() / compLut.size + 1])
|
||||
|
||||
/**
|
||||
* Deprecated: Fuck it, this vittupää just doesn't want to work
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user