Converted Torque gen to fragment (again :P).