Valve pinch a little code from Godot for Half-Life 2, Counter-Strike: Source, Day of Defeat: Source, Team Fortress 2 https://www.gamingonlinux.com/2025/02/valve-pinch-a-little-code-from-godot-for-half-life-2-counter-strike-source-day-of-defeat-source-team-fortress-2/
@gamingonlinux according to a reddit user, the algorithm it's from nvidia:
https://www.reddit.com/r/godot/comments/1itcb43/comment/mdqcxgc/