xforms for Chaotica
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
705 B

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="arctanh_shift">
<node name="input_params">
<real name="arctanh">1</real>
<real name="arctanh_shift">0</real>
<node name="internal_params">
<real name="weight" />
<real name="shift" />
<string name="winter_init_function">
arctanh_shift_init_result(arctanh * invpi(), arctanh_shift)
<string name="winter_eval_function">
z = complex(p_in.x, p_in.y)
result = weight * log((z + complex(1.0, shift)) / (-z + complex(1.0, -shift)))
vec2(result.re, result.im)