CNA Samples

Billboard Sample

Ported from Microsoft's XNA 4.0 Billboard Sample.

Source for this sample on GitHub ↗

Wind-swayed grass and trees on a sunlit landscape beneath a blue sky. Play ▸

Opens in a new tab. Move the camera to explore the field of billboards.

About this sample

Thousands of camera-facing grass, tree and cat sprites make a landscape look richly vegetated without drawing full 3D models for each plant. The vertex shader turns and sways the sprites in the wind; two rendering passes handle their opaque centers and translucent edges.

Controls

ActionKeyboardGamepad
Rotate the cameraArrow keysRight stick
Move forward/backwardW and SLeft stick
StrafeA and D—
Reset the cameraRPress right stick
ExitEscapeBack