texture

 

Tag: texture
Parent tag: textures
Attributes:

  • name (string)
  • filename (string) – optional. If not specified the child tags will provide the texture properties
  • mipmap (bool)

Child tags:

  • WIDTH (int)
  • HEIGHT (int)
  • DEPTH (int) – for 3D textures
  • INTERNAL_FORMAT (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}.
  • LEVELS (int) – the number of mipmap levels to create (default = 1)
  • LAYERS (int)
  • SAMPLES (int)
  • MIPMAP (bool) – When set to true it will create a texture will all mipmap levels (default = false)

This tag defines an empty texture.

Example:

	
<texture name="tex">
	<WIDTH value=512 />
	<HEIGHT value=512 />
	<INTERNAL_FORMAT value="RGBA" />
</texture>