Renamed "Base" to "BaseTool" and made it a class

This commit is contained in:
Manolis Papadeas 2021-02-02 17:48:17 +02:00
parent dc469dd4b5
commit ce7320ad4f
17 changed files with 47 additions and 40 deletions

View file

@ -37,7 +37,7 @@ func transparency(value :float) -> void:
OS.window_per_pixel_transparency_enabled = true
get_parent().transparent_bg = true
get_tree().get_root().set_transparent_background(true)
# this controls opacity 0 for transparent, 1 or a greater value than 1 is opaque
# i have set a minimum amount for the fade (We would'nt want the canvas to dissapear now would we?)
material.set("shader_param/alpha",clamp(value,0.1,1))