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.

34 lines
803 B

<?xml version="1.0" encoding="utf-8"?>
<user_transforms>
<transform_def name="spatial_anomaly">
<node name="input_params">
<real name="spatial_anomaly">1</real>
<real name="spatial_anomaly_a">1</real>
</node>
<node name="internal_params">
<real name="weight" />
<real name="ay" />
</node>
<int name="num_gauss_randoms">2</int>
<string name="winter_init_function">
<![CDATA[
spatial_anomaly_init_result(spatial_anomaly, max(0.0, spatial_anomaly_a))
]]>
</string>
<string name="winter_eval_function">
<![CDATA[
let
a = floor(gauss_rnd_1) * ay
b = floor(gauss_rnd_0) * (p_in.x)
c = tan(exp(log(b) * ay) * 2)
d = weight * (c * invpi())
in
vec2(cos(a), sin(b)) * (d / 50)
]]>
</string>
</transform_def>
</user_transforms>