CNA Samples

Rim Lighting

Ported from Microsoft's XNA 4.0 Rim Lighting sample.

Source for this sample on GitHub ↗

A 3D head with a warm orange rim light, two sliders and a rotation-mode button. Play ▸

Opens in a new tab. Drag with a finger or hold the left mouse button.

About this sample

An environment map adds a warm highlight around the edge of a sculpted head. Move the Amount and Thickness sliders to change the rim, drag the head to turn it, and tap the button to switch between rotating the world and rotating the camera.

Controls

ActionTouch or left mouse button
Change rim strengthDrag the Amount slider
Change Fresnel thicknessDrag the Thickness slider
Rotate model or cameraDrag the head
Switch rotation modeTap or click the bottom button