lit-unclamp

Description

This program tests the unclamped diffusion function. You can control the scale of the diffusion function by changing the light and ambient color to control the bias.

Coverage

Functions Parameters Description
GXInitLightPos Position coordinate (x, y, z) Various values.
GXInitLightColor Light color Various values.
GXSetChanCtrl Color channel ID Always GX_COLOR0
Channel enable Always GX_ENABLE
Ambient color source Always register source
Material color source Always register source
Light mask Always GX_LIGHT0
Diffusion function GX_DF_CLAMP / GX_DF_SIGN
Attenuation function Always GX_AF_NONE
GXSetChanAmbColor Ambient color Various values.
GXSetChanMatColor Material color Various values.

Using the Demo

START exits the test.

The Control Stick moves the light.

The C Stick rotates the model.

The A Button changes the model.

The B Button toggles the diffusion function (clamped/unclamped).

The X/Y Buttons select an item to be controlled in the following order: Ambient, Light, Material.

The L/R triggers change the brightness value of the selected item. This value is used as the R/G/B value of the selected item.

Snapshot

Looks at a sphere from an angle opposite that of the light with the unclamped diffuse function.

lit-unclamp-0.jpg (5065 bytes)

Looks at a torus from an angle perpendicular to that of the light with the unclamped diffuse function.

lit-unclamp-1.jpg (6902 bytes)

Required Data Files

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL