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

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="epolar">
<!-- Xform by Crystalize, based on the wonderful work of Tatasz -->
<node name="input_params">
<real name="epolar">1</real>
<real name="epolar_length" minval="0" >1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="t" />
</node>
<string name="winter_init_function">
<![CDATA[
epolar_init_result(epolar * invpi(), epolar_length)
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
tmp = dot(p_in, p_in) + t
z = complex(p_in.y, p_in.x)
result = weight * log((z * tmp) + (z * tmp))
in
vec2(result.im, result.re)
]]>
</string>
</transform_def>
</user_transforms>