Patent ID: 8379024

Claim:
A graphics library embedded in a non-transitory computer-readable medium including instructions that, when executed by a processor, cause the processor to render a graphics image based on one or more shading modules included in the graphics library, the graphics library comprising: a source code list of shading modules, wherein each of the listed shading modules corresponds to a different material property for shading; for each listed shading module, a source code shading module that includes source code instructions that define a default shading function associated with the source code shading module and is configured to allow modification of the source code instructions to produce a customized shading function associated with the source code shading module; and a shader template that is configured to incorporate each source code shading module, including, for a particular source code shading module, either the source code instructions for the default shading function associated with the source code shading module or the modified source code instructions for the customized shading function associated with the source code shading module, wherein the shader template is further configured to allow each source code shading module to be compiled into a shading program for rendering the graphics image.