renderTarget

 

Tag: renderTarget
Parent tag: pass
Attributes:

  • name (string) – the name of a render target.
  • fromLibrary (string) – the library where the render target is defined.

Child tags (none)

When a pass contains a render target, a framebuffer object is used for rendering. Render targets are defined in material libraries.

Note: when a pass contains both a viewport and a rendertarget, the viewport data overruns the render target namely its size and clear color.

This allows for dynamic render targets, setting the render target continuously to the viewport size.

Example:

<renderTarget name="test" fromLibrary="Test Render Targets"/>