Skip to content

Commit

Permalink
Update UI.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Mar 5, 2022
1 parent 1ae9f41 commit 07473be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UI/UI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit 07473be

Please sign in to comment.