diff options
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/map.gd | 8 | ||||
-rw-r--r-- | client/map/progress.gdshader | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/client/map/map.gd b/client/map/map.gd index 092a488a..f711c603 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -44,10 +44,10 @@ func gi_bake_blocking(): var extent_min = Vector2(0,0) var extent_max = Vector2(0,0) for e in tile_by_pos.values(): - extent_min.x = min(extent_min.x, e[0].x) - extent_min.y = min(extent_min.y, e[0].y) - extent_max.x = max(extent_max.x, e[0].x) - extent_max.y = max(extent_max.y, e[0].y) + extent_min.x = min(extent_min.x, e[0].x) - 0.5 + extent_min.y = min(extent_min.y, e[0].y) - 0.5 + extent_max.x = max(extent_max.x, e[0].x) + 0.5 + extent_max.y = max(extent_max.y, e[0].y) + 0.5 var center = (extent_max + extent_min) / 2 var size = extent_max - extent_min diff --git a/client/map/progress.gdshader b/client/map/progress.gdshader index 6e0d06ba..9567bcac 100644 --- a/client/map/progress.gdshader +++ b/client/map/progress.gdshader @@ -1,6 +1,7 @@ /* Undercooked - a game about cooking Copyright 2024 nokoe + Copyright 2024 tpart This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -16,19 +17,21 @@ */ shader_type spatial; +render_mode unshaded; uniform float progress = 0.; uniform bool bad = false; void fragment() { - vec3 color = vec3(0., 1., 0.); + vec3 color = vec3(0., .5, 0.); float alpha_fac = 1.; if (bad) { color = vec3(1., 0., 0.); alpha_fac = sin(TIME * 15.) * .5 + 1.; } if (UV.x > progress) { - ALPHA = 0.1; + ALPHA = 1.; + color = vec3(0.1, 0.1, 0.1); } ALPHA *= alpha_fac; ALBEDO = color; |