From c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 26 Jun 2024 22:46:41 +0200 Subject: Fix colors on OpenGL --- client/game.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/game.gd') 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") -- cgit v1.2.3-70-g09d2