mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 02:34:43 -04:00
Minor TransparentChecker performance boost
Got rid of its _process, using _ready() instead. It also gets called when the canvas size changes, or the checker settings in the preferences change.
This commit is contained in:
parent
b21455cfd0
commit
79a4c0232e
4 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
extends ColorRect
|
||||
|
||||
func _process(_delta):
|
||||
|
||||
func _ready():
|
||||
rect_size = Global.canvas.size
|
||||
material.set_shader_param("size", Global.checker_size)
|
||||
material.set_shader_param("color1", Global.checker_color_1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue