mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
rendering: fix lighting
This commit is contained in:
parent
cfd492eee4
commit
3f153a5288
@ -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,
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user