Tested the old D3D9X shader code, fixed minor issues.