Blender's "Hair Info" shading node just got a boost thanks to a patch by Lasse Foster, a patch that marks Lasse's first contribution to Blender development!
The new patch exposes a "length" attribute in the hair info node, which allows for better control over individual-hair-length-dependent gradients and shaders, as well as gives the ability to divide and group hairs by their lengths, as seen in the example above.
This patch has already landed in the daily builds, and you can download the latest Blender 3.0 alpha on the link below to try it out: