diff options
author | tpart <tpart120@proton.me> | 2024-06-26 22:46:41 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-06-26 22:46:41 +0200 |
commit | c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c (patch) | |
tree | b93bba8b0ae653174e9a68b76137573e47c74bb5 /client/menu | |
parent | b4b104991b755e334eeee81ed8ede66e0e2a90eb (diff) | |
download | hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.bz2 hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.zst |
Fix colors on OpenGL
Diffstat (limited to 'client/menu')
-rw-r--r-- | client/menu/menu_background.gd | 5 | ||||
-rw-r--r-- | client/menu/menu_background.tscn | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/client/menu/menu_background.gd b/client/menu/menu_background.gd index 62c38baa..1d9322f3 100644 --- a/client/menu/menu_background.gd +++ b/client/menu/menu_background.gd @@ -19,7 +19,12 @@ extends Node3D const NULLS = [null,null,null,null] const BUCKETS = [[], ["floor","floor","floor","floor","tomato-crate", "raw-steak-crate"], ["table", "chair", "counter"], ["sink", "stove"]] +@onready var environment: WorldEnvironment = $Environment + func _ready(): + if !Global.on_vulkan(): + environment.environment.tonemap_exposure = 0.25 + for x in range(-10,11): for y in range(-10,11): var w = exp(-sqrt(x*x+y*y) * 0.15) diff --git a/client/menu/menu_background.tscn b/client/menu/menu_background.tscn index 951750e9..dbc7010a 100644 --- a/client/menu/menu_background.tscn +++ b/client/menu/menu_background.tscn @@ -56,7 +56,7 @@ transform = Transform3D(0.290334, 0.904946, -0.311092, 0.336606, 0.207739, 0.918 light_energy = 1.25 shadow_enabled = true -[node name="env" type="WorldEnvironment" parent="."] +[node name="Environment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_slkjl") [node name="the-sky-tm" type="MeshInstance3D" parent="."] |