aboutsummaryrefslogtreecommitdiff
path: root/client/menu/menu_background.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/menu/menu_background.gd
parentb4b104991b755e334eeee81ed8ede66e0e2a90eb (diff)
downloadhurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar
hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.bz2
hurrycurry-c44b0f63627c0e0e813e3dc44c1f9dd60e3c097c.tar.zst
Fix colors on OpenGL
Diffstat (limited to 'client/menu/menu_background.gd')
-rw-r--r--client/menu/menu_background.gd5
1 files changed, 5 insertions, 0 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)