color

 

Tag: color
Parent tag: pass
Attributes:

  • clear (bool) – whether to clear the color buffer (default = true).
  • enable (bool) – enable/disable color writing (default = true).

Child tags (none)

If clear is true, the color framebuffer will be cleared every frame when the pass is prepared. Note that when using multiple viewports only the viewport area will be cleared.

The clear value to use is obtained from the viewport definition.

Example:

1
<color clear=true enable=true />