1asset glow_mushrooms "Glow mushrooms" complexity=3
2// a clump of cave fungi that light the dark: one fat mushroom about knee high and a crowd of smaller
3// ones on a mossy hump, their caps glowing, pale gills underneath, a few spots on top. Seeds change
4// the glow colour and the sizes.
5let S = .85..1.2
6let capC = lime:2|aqua|grape|bubblegum|sunflower
7let stemC = cream:2|birch
8let mossC = moss:2|hedge
9
10// the mossy hump
11ball hump r=(.55, .14, .48)*S half color=mossC noise=.06 segs=22 rings=8
12puff tuft x3 on=hump ring ring0=40 at=(.45*S, .1, 0) r=.12 color=mossC*1.12 segs=7 rings=5
13
14// the big one
15lathe stem on=hump at=(.05, .08, 0)*S h=.5*S r=.08*S prof=[0:1.4 .2:1 .7:.85 1:1] color=stemC segs=12 rings=6
16ball cap on=stem at=end r=(.3, .2, .3)*S half color=capC ink=glow segs=26 rings=10
17cyl gill on=stem at=(0, .5*S-.02, 0) h=.03 r=.27*S color=capC*.65 segs=20
18ball spot x5 on=cap surf=(i*72+20, 40) lift=-.008 r=(.045, .02, .045)*S color=white segs=8 rings=4
19
20// a crowd of small ones
21lathe stemB x3 on=hump ring ring0=-30 at=(.3*S, .05, 0) rot=(0, 0, -12) h=(.28-i*.05)*S r=.045*S prof=[0:1.3 .3:1 1:.9] color=stemC segs=8 rings=4
22ball capB on=stemB at=end r=(.15, .1, .15)*S half color=capC ink=glow segs=14 rings=6
23cyl gillB on=stemB at=end+(0, -.015, 0) h=.02 r=.13*S color=capC*.65 segs=14
24lathe stemTiny x2 on=hump ring ring0=150 at=(.32*S, .04, 0) rot=(0, 0, -20) h=.17*S r=.03*S color=stemC segs=8 rings=3
25ball capC2 on=stemTiny at=end r=(.08, .06, .08)*S half color=capC*1.1 ink=glow segs=12 rings=5
26
27
28