color

 

Tag: color
Parent tag: colors
Attributes:

  • name (string) – the name for the texture color attachment.
  • internalFormat (enum) – the format of the texture. Possible values are {R8, R16, R16F, R32F, R8I, R16I, R32I, R8UI, R16UI, R32UI, RG8, RG16, RG16F, RG32F, RG8I, RG16I, RG32I, RG8UI, RG16UI, RG32UI, RGBA, RGBA, RGBA16, RGBA16F, RGBA32F, RGBA8I, RGBA16I, RGBA32I, RGBA8UI, RGBA16UI, RGBA32UI}.

Child tags (none)

Using this tag in a render target results in the creation of a texture with the render target parameters. The texture is used as a color attachment in the render target and can later be used in a material.

The first color will be color attachment 0, the second color attachment 1, and so on.

Example:

<color name="color" internalFormat="RGBA"  />
<color name="pos" internalFormat="RGBA32F"  />