aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-06-26 22:46:41 +0200
committertpart <tpart120@proton.me>2024-06-26 22:46:41 +0200
commitc44b0f63627c0e0e813e3dc44c1f9dd60e3c097c (patch)
treeb93bba8b0ae653174e9a68b76137573e47c74bb5 /client/game.gd
parentb4b104991b755e334eeee81ed8ede66e0e2a90eb (diff)
downloadhurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar
hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.bz2
hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.zst
Fix colors on OpenGL
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd
index ab2cdfbd..76ea21f0 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -32,7 +32,13 @@ var item_idx_from_name: Dictionary = {}
var tile_by_pos: Dictionary = {}
var players := {}
+
+@onready var environment = $WorldEnvironment
+
func _ready():
+ if !Global.on_vulkan():
+ environment.environment.tonemap_exposure = 0.5
+
mp.connection_closed.connect(func(reason: String):
Global.error_message = reason;
$SceneTransition.instant_to("res://menu/error_menu.tscn")