01 ID-map bone fill
M_Hand
A single User Interface material that lights up the bones of the hand one by one, pulses the ones a hovered card would cost, and flashes the ones tied to the selected card.
- Domain
- User Interface
- Blend mode
- Translucent
- Exposed
- 10 scalars, 4 colors
- Logic
- Custom HLSL node
One ID map instead of thirty masks
Every bone is painted with its own red value on a single ID texture, 5/255 apart. The fill mask, the full-hand mask, the outline and the background come in as separate textures. All of them are sampled through one distorted UV set, so a single DistortionThreshold parameter can wobble the whole hand.
Sorting bones with a Custom node
A short HLSL loop walks the 30 IDs, builds a soft mask per bone from the color distance, and sorts it into three outputs: filled, pulsing and selected. Blueprint only sets FilledBones, PulsingBones and SelectedCost.
HLSL float filled = 0.0; float pulsing = 0.0; float selected = 0.0; float stepSize = 0.0196; float baseIndex = max(0.0, filledCount - selectedCost); for (int i = 0; i < 30; i++) { float targetR = 1.0 - (i * stepSize); float3 targetColor = float3(targetR, 0, 0); float dist = length(IDMapColor - targetColor); float mask = 1.0 - smoothstep(tolerance * 0.8, tolerance, dist); mask *= fillMask; float boneIndex = i + 1; float isOn = step(boneIndex, filledCount); float isPulsing = step(boneIndex, filledCount + pulsingCount) - isOn; float isBase = step(boneIndex, baseIndex); float isSelected = isOn - isBase; filled += mask * isOn; pulsing += mask * isPulsing; selected += mask * isSelected; } pulsingBones = pulsing; selectedBones = selected; return filled;Pulse and selection colors
One sine wave, scaled by PulseSpeed and remapped to 0–1, drives both states. Pulsing bones blend between two colors. Selected bones blend from the fill color to an HDR white, which reads as a flash.
Animated outline
Two noise samples pan at different speeds, get subtracted and remapped by OutlineNoiseIntensity. The result is an energy pattern with no visible loop. It multiplies the outline texture and a SpiralBlur copy of it for the glow, and a slow sine makes the whole outline breathe.
Inner glow and final mask
The same panning noise is masked to the hand minus the bones and tinted for the inner glow. The final mask adds fill, background alpha, outline and glow, then fades the wrist with a SmoothStep on the inverted V coordinate.
Composition and dissolve
Layers are added in order: background, bone background, glow, colored bones, outline. Opacity is the hand mask multiplied by a Step between a noise texture and DissolveThreshold, so the widget dissolves in and out with one parameter.
Exposed parameters
- FilledBones
- how many bones are lit
- PulsingBones
- how many bones after those pulse
- SelectedCost
- how many of the lit bones flash
- PulseSpeed
- speed of the shared sine
- OutlineXSpeed / OutlineYSpeed
- panning of the outline noise
- OutlineNoiseIntensity
- contrast of the outline energy
- DissolveThreshold
- show and hide the hand
- DistortionThreshold
- UV wobble
- FilledColor, HandNoiseColor, PulsingColorA/B
- palette
Next iteration
- Replace the real-time SpiralBlur with a pre-blurred outline stored in a texture channel.
- Pack the single-channel masks (fill, hand, outline, background alpha) into one RGBA texture.
- Compute the bone index directly from the red value instead of looping over 30 IDs.



