Abstract: The present invention concerns a method for rendering or interactive lighting of a tridimensional scene (35) in order to obtain a twodimensional image (12) of said scene comprising the steps of performing a shading process (15) taking into account a set of shader and material properties of the 3D objects of the scene wherein the shading process produces a shader frame-buffer (24) used to store information records related to shaders (20) and/or material properties (19) of the tridimensional scene (35) in a format where said information records can be accessed in relation with a an image position (x, y, sx, sy) in the twodimensional image (12).