Navigate to the top level

Lighting_range

Description
Tests the effects of NV097_SET_LIGHT_LOCAL_RANGE (0x1024).
Each test renders a grid mesh in the center, angled such that the left side is closer to the camera than the right. Two quads are also rendered to the left and the right of the main mesh, the one on the left at a depth close to the camera and the one on the right farther away.
A light is then projected onto the geometry with a range cutoff set such that a portion of the vertices should not be lit.
Suite class def

Directional

Tests behavior using the fixed function pipeline with a directional (infinite) light.

Image with alpha
Test result for Lighting_range::Directional
Image as seen on display
No alpha test result for Lighting_range::Directional

Point

Tests behavior using the fixed function pipeline with a point (local) light. Attenuation is set to 0 for the light, resulting in hard edges.

Image with alpha
Test result for Lighting_range::Point
Image as seen on display
No alpha test result for Lighting_range::Point

Spot

Tests behavior using the fixed function pipeline with a spotlight. Attenuation is set to 0 for the light, resulting in hard edges.

Image with alpha
Test result for Lighting_range::Spot
Image as seen on display
No alpha test result for Lighting_range::Spot