1. A method for graphics processing, comprising: receiving node and view data for a graphic object; building a binary-space-partition tree corresponding to the graphic object, the binary-space-partition tree having at least one shape associated with each leaf; sorting shapes at each leaf of the binary-space-partition tree; and outputting the sorted shapes.