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.

36 lines
827 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="catscale">
<node name="input_params">
<real name="catscale">1</real>
<real name="catscale_prrr">1</real>
<real name="catscale_meow">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="a" />
<real name="b" />
</node>
<int name="num_unit_randoms">1</int>
<string name="winter_init_function">
<![CDATA[
catscale_init_result(catscale, catscale_prrr, catscale_meow)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
r1 = (a * p_in.y)
r2 = (b * p_in.y)
x = invpi() * cosh(p_in.x) / r1
y = invpi() * sinh(p_in.y) / r2
in
vec2((x), (y)) * (p_in.y * p_in.x) * (weight * 2)
]]>
</string>
</transform_def>
</user_transforms>