tg-basic tests various methods of texture generation. The following methods are used: (Texture coordinates) * (2x4 matrix) : Texture translate
(Texture coordinates) * (2x4 matrix) : Texture rotate
(Position Coordinates) * (3x4 matrix) : Texture projection
Texture coordinate generation as a result of lighting (s = red component, t = green component)
| Functions | Parameters | Description |
| GXLoadTexMtxImm | Matrices | appropriate transformation mtx |
| Matrix destination. | GX_TEXMTX0 | |
| Types | GX_MTX2x4 or GX_MTX3x4 depending on generation type. |
|
| GXSetTexCoordGen | destination coord | Always GX_TEXCOORD0. |
| Generation type. | GX_TG_MTX3x4, GX_TG_MTX2x4, or GX_TG_SRTG depending on generation type |
|
| Generation source. | GX_TG_TEX0, GX_TG_POS, GX_TG_COLOR0 |
|
| Matrix source. | GX_TEXMTX0 |
START exits the test.
The B Button turns texture on/off..
The A Button changes texgen method.
Texture translation.

Texture rotation.

Texture projection.

Texture coordinate generation from the result of lighting calculations.

$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl
03/01/2006 Initial version.