mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-27 20:17:26 -04:00
gate info
This commit is contained in:
parent
71b8d06c69
commit
a425178538
10 changed files with 177 additions and 72 deletions
17
app/scripts/ui/world/vignette_blur.gd
Normal file
17
app/scripts/ui/world/vignette_blur.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
extends Control
|
||||
class_name VignetteBlur
|
||||
|
||||
const BLUR_AMOUNT = "BlurAmount"
|
||||
const UV_SCALE = "UVScale"
|
||||
|
||||
@export var blur_amount_game: float
|
||||
@export var uv_scale: Vector2
|
||||
|
||||
|
||||
func gate_started_params() -> void:
|
||||
set_param(BLUR_AMOUNT, blur_amount_game)
|
||||
set_param(UV_SCALE, uv_scale)
|
||||
|
||||
|
||||
func set_param(param: StringName, value: Variant) -> void:
|
||||
(material as ShaderMaterial).set_shader_parameter(param, value)
|
Loading…
Add table
Add a link
Reference in a new issue