1. A method comprising: receiving an object defined by triangle primitives in a three-dimensional (3D) space that is specific to the Object; defining an object-space shading grid for a first triangle primitive of the triangle primitives based on coordinates of the first triangle primitive in the 3D space; and executing, by a processing pipeline, a shader program to compute a shaded value at a point on the object-space shading grid for the first triangle primitive.