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.

35 lines
789 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="bender">
<!-- made by Crystalize -->
<node name="input_params">
<real name="bender" >1</real>
<real name="bender_x" >1</real>
<real name="bender_y" >0</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
</node>
<string name="winter_init_function">
<![CDATA[
bender_init_result(bender, bender_x, bender_y)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
x = halfpi() * p_in.x
y = halfpi() * p_in.y
matrix = mat2x2(sinh(y) * wy, cosh(x) * ex,
-cosh(x) * ex, sinh(y) * wy)
in
(matrix * p_in) * weight
]]>
</string>
</transform_def>
</user_transforms>