My entry for the Shaders.xyz candy challenge: http://www.shaders.xyz/forums/topic/challenge-02-candy/
High-res nodetree: https://www.dropbox.com/s/sn24whgz7totqk3/shadersXYZ_nodetrees_anthony-pilon.zip?dl=0
I used microdisplacement and particle instancing for the sugar, and some slight Voronoi F2-F1 displacement to break up the surface. The candy is mainly a translucency/SSS blend. I tried a refraction+volume approach, but I couldn’t get the light scattering to behave the way I wanted, especially on the mix of yellow and white candy. In the end I used no volume and only a little glass to hint at refraction on the surface. I’m not entirely happy with how the green candy turned out, though it might be affected by lighting and camera angle differences from the reference. I mixed in more of the glass shader on the green to get a bit of lightening on the tip and darkening further down; if I have time later on I might tweak it some more. Overall though, I like where this is.