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.

36 lines
1.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="half_plane_rippler">
<node name="input_params">
<real name="half_plane_rippler">1</real>
<real name="half_plane_rippler_x">1</real>
<real name="half_plane_rippler_y">1</real>
<real name="half_plane_rippler_z">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="x" />
<real name="y" />
<real name="z" />
</node>
<string name="winter_init_function">
<![CDATA[
half_plane_rippler_init_result(half_plane_rippler * pi(), half_plane_rippler_x, half_plane_rippler_y, half_plane_rippler_z * invpi())
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
a = complex(cosh(p_in.x) * x, ((p_in.y) * x)) * twopi()
b = complex(sinh(p_in.y) * y, ((p_in.x) * y)) * invpi()
c = tanh(b.re / a.im) * z
d = tanh(a.re / b.im) * z
in
(p_in * (vec2(c).x * vec2(d).y) * (vec2(c + d).x / vec2(c + d).y)) * weight
]]>
</string>
</transform_def>
</user_transforms>