mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
reset shader params
This commit is contained in:
parent
bb639555be
commit
f9d773e940
3 changed files with 18 additions and 8 deletions
|
@ -18,6 +18,7 @@ func _ready() -> void:
|
|||
func show_thumbnail(gate: Gate, _is_cached: bool) -> void:
|
||||
splash_screen.texture = FileTools.load_external_tex(gate.image)
|
||||
vignette_blur.show()
|
||||
vignette_blur.thumbnail_params()
|
||||
|
||||
|
||||
func on_first_frame() -> void:
|
||||
|
|
|
@ -4,13 +4,20 @@ class_name VignetteBlur
|
|||
const BLUR_AMOUNT = "BlurAmount"
|
||||
const UV_SCALE = "UVScale"
|
||||
|
||||
@export var blur_amount_game: float
|
||||
@export var blur_amount: float
|
||||
@export var blur_amount_started: float
|
||||
@export var uv_scale: Vector2
|
||||
@export var uv_scale_startd: Vector2
|
||||
|
||||
|
||||
func thumbnail_params() -> void:
|
||||
set_param(BLUR_AMOUNT, blur_amount)
|
||||
set_param(UV_SCALE, uv_scale)
|
||||
|
||||
|
||||
func gate_started_params() -> void:
|
||||
set_param(BLUR_AMOUNT, blur_amount_game)
|
||||
set_param(UV_SCALE, uv_scale)
|
||||
set_param(BLUR_AMOUNT, blur_amount_started)
|
||||
set_param(UV_SCALE, uv_scale_startd)
|
||||
|
||||
|
||||
func set_param(param: StringName, value: Variant) -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue