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.

33 lines
805 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="headsplitter">
<node name="input_params">
<real name="headsplitter">1</real>
<real name="headsplitter_x">1</real>
<real name="headsplitter_y">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
</node>
<string name="winter_init_function">
<![CDATA[
headsplitter_init_result(headsplitter, headsplitter_x, headsplitter_y)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
a = (p_in.y) / (p_in.x) * ex
b = (p_in.x) / (p_in.y) * wy
in
(mat2x2(cos(a), -sinh(b),
sinh(a), cos(b)) * p_in * (sinh(a) * sinh(b))) * (weight * 0.05)
]]>
</string>
</transform_def>
</user_transforms>