TARGET

A TARGET block describes a surface to which an EFFECT block can render

A TARGET block describes a surface to which an EFFECT block can render. A PFX may read from a TARGET block as if it were a TEXTURE block as long as the render to that block has been completed prior to the read.

The valid keywords and values are outlined below.

Table 1. Keywords (target block)

Keyword

Description

NAME

A text identifier for this target.

MINIFICATION

Minification texture filter flags.

Valid values:

  • NEAREST
  • LINEAR

MAGNIFICATION

Magnification texture filter flags.

Valid values:

  • NEAREST
  • LINEAR

MIPMAP

MIP-map texture filter flags.

Valid values:

  • NEAREST
  • LINEAR
  • NONE

RESOLUTION

Describes the resolution of the texture. This will be ignored if PATH is specified, where the resultant resolution will be that of the loaded texture.

WRAP_x

Where x is a valid axis (S, T, or R). Specifies the texture wrapping in the defined axis.

Valid values:

  • REPEAT
  • CLAMP

SURFACETYPE

Describes the surface/pixel type of the texture. This will be ignored if PATH is specified, where the resultant surface type will be that of the loaded texture.

Valid values:

  • RGBA8888
  • RGBA4444
  • RGB888
  • RGB565
Table 2. Values (target block)

Value

Associated Keyword

Description

LINEAR

MINIFICATION

MAGNIFICATION

MIP-MAP

Linear interpolates between sampled texels.

NEAREST

MINIFICATION

MAGNIFICATION

MIP-MAP

Chooses nearest texel based on Manhattan distance.

NONE

MIP-MAP

Disable MIP-mapping.

CLAMP

WRAP_S

WRAP_T

WRAP_R

Clamps to texture border.

REPEAT

WRAP_S

WRAP_T

WRAP_R

Repeats at texture border.

RGBA88c88

SURFACETYPE

32bit RGBA texture format.

RGBA4444

SURFACETYPE

16bit RGBA texture format.

RGB888

SURFACETYPE

24bit RGB texture format.

RGB565

SURFACETYPE

16bit RGB texture format.

INTENSITY8

SURFACETYPE

8bit intensity texture format.

Example code

[TARGET]
    NAME             exampleTarget
    MINIFICATION     LINEAR
    MAGNIFICATION    LINEAR
    MIPMAP   	 NONE
    RESOLUTION       128 128
    WRAP_S	    REPEAT
    WRAP_T	    REPEAT
    SURFACETYPE      RGBA8888
[/TARGET]