mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 19:55:54 +00:00
14 lines
454 B
GDScript
14 lines
454 B
GDScript
extends DialogicBackgroundTransition
|
|
|
|
func setup_swipe_shader() -> ShaderMaterial:
|
|
var shader := set_shader()
|
|
shader.set_shader_parameter("wipe_texture", load(
|
|
DialogicUtil.get_module_path('Background').path_join("Transitions/simple_swipe_gradient.tres")
|
|
))
|
|
|
|
shader.set_shader_parameter("feather", 0.3)
|
|
|
|
shader.set_shader_parameter("previous_background", prev_texture)
|
|
shader.set_shader_parameter("next_background", next_texture)
|
|
|
|
return shader
|