Browse Source

Split interest just keeps getting better. :D

master
Crystalize 1 year ago
parent
commit
158ee7b9f6
  1. 2
      linkA_split_interest.xml

2
linkA_split_interest.xml

@ -39,7 +39,7 @@
rflux = lerp(fluxa, fluxb, if unit_rnd_0 >= 0.5 then 1.0 else 0.0)
d = dot(p_in,p_in)
r_avg = weight * sqrt(1 + 4 * p_in.x / (d - 2 * p_in.x + 1))
r_avg = weight * sqrt(1 + 4 * p_in.x / (d - 2 * p_in.x + (spread - 1.0)))
a_avg = 0.5 * atan2(2 * p_in.y, (d - 1))
deltaa = vec2(cos(a_avg), sin(a_avg)) * r_avg
deltab = vec2(-cos(a_avg), if syty == 0.0 then -sin(a_avg) else sin(a_avg)) * r_avg

Loading…
Cancel
Save