rendering: fix lighting

This commit is contained in:
Bixilon 2021-04-07 00:28:36 +02:00
parent cfd492eee4
commit 3f153a5288
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ class SectionArrayMesh : Mesh(initialCacheSize = 100000) {
val color = tintColor ?: ChatColors.WHITE val color = tintColor ?: ChatColors.WHITE
val lightFactor = MAX_LIGHT_LEVEL / (lightLevel + 1) val lightFactor = (lightLevel + 1) / MAX_LIGHT_LEVEL_FLOAT
val lightColor = RGBColor(color.red / lightFactor, color.green / lightFactor, color.blue / lightFactor) val lightColor = RGBColor((color.red * lightFactor).toInt(), (color.green * lightFactor).toInt(), (color.blue * lightFactor).toInt())
data.addAll(floatArrayOf( data.addAll(floatArrayOf(
position.x, position.x,

View File

@ -30,7 +30,7 @@ public class CommandHelp extends Command {
print(""); print("");
print("help -> Get this list"); print("help -> Get this list");
print("connection -> Manage connections"); print("connection -> Manage connections");
print("[disconnect]] -> Disconnect from current connection"); print("[disconnect] -> Disconnect from current connection");
print("[chat] -> Write a command or chat message"); print("[chat] -> Write a command or chat message");
print("[tab] -> Manage tab"); print("[tab] -> Manage tab");
print("[entity] -> See all entities"); print("[entity] -> See all entities");