This is the most complex part. (e.g., "ATX variable current limit mod") with PCB layouts.
V_out = V_ref * (1 + R_top / R_bottom) where V_ref = 2.5V (internal reference). Convert Atx Power Supply To Variable Benchtop Pdf