1.1.1.94 sn-glycerol 3-phosphate + NAD(P)+ = glycerone phosphate + NAD(P)H + H+