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.

37 lines
1005 B

10 months ago
<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="plane2v_o_i_d">
<node name="input_params">
<real name="plane2v_o_i_d">1</real>
<real name="plane2v_o_i_d_x">1</real>
<real name="plane2v_o_i_d_y">1</real>
<real name="plane2v_o_i_d_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[
plane2v_o_i_d_init_result(plane2v_o_i_d * pi(), plane2v_o_i_d_x, plane2v_o_i_d_y, plane2v_o_i_d_z * invpi())
]]>
</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) * z
d = tanh(a.re / b.im) * z
in
p_in * (vec2(c).x * vec2(d).y) * weight
]]>
</string>
</transform_def>
</user_transforms>