diff --git a/src/UI/UI.gd b/src/UI/UI.gd index 9d68874f8848..0e0384d836e8 100644 --- a/src/UI/UI.gd +++ b/src/UI/UI.gd @@ -7,7 +7,7 @@ onready var main_canvas_container = Global.main_canvas_container func _ready() -> void: update_transparent_shader() - #Set anchors for ShaderVision + # Set anchors for ShaderVision Global.greyscale_vision.visible = false Global.greyscale_vision.anchor_left = ANCHOR_BEGIN Global.greyscale_vision.anchor_top = ANCHOR_BEGIN @@ -23,8 +23,8 @@ func _on_main_canvas_visibility_changed() -> void: update_transparent_shader() -func update_transparent_shader(): - # works independently of the transparency frature +func update_transparent_shader() -> void: + # Works independently of the transparency feature material.set("shader_param/screen_resolution", get_viewport().size) material.set("shader_param/position", main_canvas_container.rect_global_position) material.set("shader_param/size", main_canvas_container.rect_size)