mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-03 13:41:43 -04:00
Three issues: 1. NaN distance returned 1.0 (full influence) because distance >= radius is false for NaN; the inner-radius check then returned 1. 2. Non-positive radius would divide by zero in the t computation. 3. falloff = 0 produces division by zero in the outer falloff path. Also clamps falloff to [0,1] so a slider extreme can't break the math.
924 B
924 B