A computer graphics system for generating an image of a scene from a representation of the scene to which at least one shader directed acyclic graph (DAG) comprising a plurality of nodes, including at least one primary root node for attaching the shader DAG to an element of the scene representation and at least one shader node connected thereto in the DAG, the computer graphics system comprising:
- A. at least one of
- (i) a pre-processor module configured to determine whether the at least one shader node is of a type that is used in performing a pre-processing operation in connection with said representation, and, if so, using the at least one shader node to perform said pre-processing operation to generate a pre-processed representation of the scene, or
- (ii) a post-processor module configured to determine whether the at least one shader node is of a type that is used in performing a post-processing operation in connection with said representation and, if so, using the at least one shader node to perform said post-processing operation in connection with a rendered image;
- and
- B. a renderer module configured to generate the rendered image from one of the representation of the scene or, if the computer graphics system includes the pre-processor module, the pre-processed representation of the scene.