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.

30 lines
683 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="log_pi">
<!-- Crystalize added a pi rescale -->
<node name="input_params">
<real name="log_pi" >1</real>
<real name="log_pi_base" >10</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="scale" />
</node>
<string name="winter_init_function">
<![CDATA[
log_pi_init_result(log_pi * (quartpi() / 2.5), log_pi * 0.5 / log(log_pi_base))
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
vec2(
scale * log(dot(p_in, p_in)),
weight * atan2(p_in.y, p_in.x))
]]>
</string>
</transform_def>
</user_transforms>