1. A method comprising: receiving a primitive defined by vertices in three-dimensional (3D) space that is specific to an object defined by at least the primitive; computing a shading sample rate for the primitive based on a screen-space derivative of coordinates of a pixel fragment transformed into the 3D space that is specific to the object; and executing, by a processing pipeline, a shader program to compute shaded attributes for the primitive according to the computed shading sample rate.