Blender V5.3
gbuffer::detail Namespace Reference

Functions

G-buffer Read
ClosureUndetermined unpack_closure (ClosurePacking cl_in)

Detailed Description

G-buffer: Packing and unpacking of G-buffer data.

See #GBuffer for a breakdown of the G-buffer layout.

There is two way of indexing closure data from the GBuffer:

  • per "bin": same closure indices as during the material evaluation pass. Can have none-closures.
  • per "layer": gbuffer internal storage order. Tightly packed, will only have none-closures at the end of the array.

Indexing per bin is better to avoid parameter discontinuity for a given closure (i.e: for denoising), whereas indexing per layer is better for iterating through the closure without dealing with none-closures.

Function Documentation

◆ unpack_closure()