Game dev
Saved & recent

Deferred rendering

Related terms: forward rendering, G-buffer

In forward rendering, each object is lit as it is drawn. It is simple and handles transparency well, but the cost grows with objects times lights.

Deferred rendering splits the work. A first pass writes surface data for every pixel into several textures: color, normal, depth, roughness. That set is the G-buffer. A second pass computes lighting once per screen pixel. It copes with hundreds of lights. Transparent objects still need a forward pass.

Further reading
LearnOpenGL: deferred shading
albedo normal depth roughness geometry passG-buffer lightingpass lit frame
All four buffers describe the same visible opaque surfaces; violet marks one shared sample. An illustrative lighting pass reconstructs position from depth and uses stored albedo, normal and roughness with two point lights. Normal hues schematically indicate the dominant axis (red x, green y, blue z), with stronger tint for positive components. Depth is darker near; roughness is darker for smoother surfaces.

View in the full Game dev collection