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.

31 lines
728 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="horseshoe2">
<node name="input_params">
<real name="horseshoe2">1</real>
<real name="horseshoe2_h">0</real>
<real name="horseshoe2_i">2</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="h" />
<real name="i" />
</node>
<string name="winter_init_function">
<![CDATA[
horseshoe2_init_result(horseshoe2, horseshoe2_h, horseshoe2_i)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
r = weight / (length(p_in) + h)
in
vec2((p_in.x - p_in.y) * (p_in.x + p_in.y), i * p_in.x * p_in.y) * r
]]>
</string>
</transform_def>
</user_transforms>