mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 23:17:34 -04:00
reset shader params
This commit is contained in:
parent
bb639555be
commit
f9d773e940
3 changed files with 18 additions and 8 deletions
|
@ -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