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"?>
<user_transforms>
<transform_def name="arctanh_shift">
<node name="input_params">
<real name="arctanh">1</real>
<real name="arctanh_shift">0</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="shift" />
</node>
<string name="winter_init_function">
<![CDATA[
arctanh_shift_init_result(arctanh * invpi(), arctanh_shift)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
z = complex(p_in.x, p_in.y)
result = weight * log((z + complex(1.0, shift)) / (-z + complex(1.0, -shift)))
in
vec2(result.re, result.im)
]]>
</string>
</transform_def>
</user_transforms>