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
755 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="waves_linear">
<node name="input_params">
<real name="waves_linear">1</real>
<real name="waves_linear_x">1</real>
<real name="waves_linear_y">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
</node>
<int name="num_unit_randoms">1</int>
<string name="winter_init_function">
<![CDATA[
waves_linear_init_result(waves_linear, waves_linear_x, waves_linear_y)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
a = vec2(cos((p_in.x) * ex) * sin((p_in.y) * wy)) + p_in
in
a * weight
]]>
</string>
</transform_def>
</user_transforms>