tex-layer

Description

tex-layer is a simple demo of the multi-texture capabilities. A cube is displayed with two texture maps. The user can change the way the maps are combined, using GX_MODULATE, GX_DECAL, or by turning the two textures on and off.

Coverage

Functions Parameters Description
GXSetTevOp TEV Stages GX_TEVSTAGE0, GX_TEVSTAGE1.
op GX_REPLACE, GX_MODULATE, GX_DECAL, GX_PASSCLR
GXLoadTexObj address GX_TEXMAP0, GX_TEXMAP1

Using the Demo

The Menu button exits the test.

The X Button toggles the combine mode.

The B Button stops/starts cube rotation.

Snapshot

Textures are drawn using GX_MODULATE.

tex-layer_1.JPG (6184 bytes)

Textures are drawn using GX_DECAL.

tex-layer_2.JPG (7278 bytes)

Texture 2 is turned off.

tex-layer_3.JPG (12279 bytes)

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-05.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL