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.

34 lines
874 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="clam">
<node name="input_params">
<real name="clam">1</real>
<real name="clam_x" minval = "-1.5" maxval = "1.5">1.5</real>
<real name="clam_y">0.05</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="x" />
<real name="y" />
</node>
<string name="winter_init_function">
<![CDATA[
clam_init_result(clam * pi(), clam_x, clam_y)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
a = complex(sin(p_in.x) * x, tan((p_in.x) * x))
b = complex(pow(cos(p_in.y) * y, (tan((p_in.y) * y))), pow(cos(p_in.y) * y, (tan((p_in.y) * y)))) / 2
c = tanh(b.re / a.im)
d = tanh(a.re / b.im)
in
p_in * (vec2(c).x * vec2(d).y) * (weight)
]]>
</string>
</transform_def>
</user_transforms>