1. A method of rendering an object including a path, the method comprising: obtaining, at a processor, path data including information about vertices included in the path and a command corresponding to the path; calculating, at the processor, a final winding number of each of tiles included in a frame based on the path data; determining, at the processor, for each tile, whether to perform shading based on the final winding number of the tile; and performing shading on each of pixels included in the frame based on a result of the determining, wherein the calculating includes, setting a first winding number of each of the tiles included in the frame based on the path data; and calculating a second winding number of each of the tiles, through which the path passes, from among the tiles included in the frame based on the first winding number.