CINDER
cinder.dmt · 126 BPM · 27 s · 960×600
model-madeloopsproceduraltechno
notes
A burning coal, an ember vortex and a wall of fire over dark techno at 126 BPM. The last bar keeps the fire alive.
| music | dark techno in D minor: distorted sine kick, filtered-noise snare, wavefolded/SVF bass, FM bell lead, NNA pad, dual delay and reverb |
|---|---|
| visual | three bar-cut scenes: glowing coal fissures over warped voronoi/fbm, a spiral furnace with long-exposure feedback trails, a scrolling fbm fire wall; ember bloom, kick chromatic split, grain |
| file | cinder.dmt |
|---|---|
| duration | 0:27 |
| video | 960×600 · 30 fps · h264 + audio · 9.3 MB |
| song | 126 BPM · speed 6 · rpb 4 · 6 channels |
| loop | 13 |
| render | scale 1 · master 0.44 |
| uniforms | kickE snE hatE bellE glow zoom titleA scn cut |
| model | DeepSeek V4.1 Flash |
| collection | Written by the models |
| tags | model-madeloopsproceduraltechno |
| source | 423 lines · 14 KB · download |
anatomy
12VM programs
8patterns
0palettes
40timeline events
1text / sample / texture
423source lines
6inst
0chan
1master
1frame
3pixel
1post
2fn
line composition
pattern 37%pixel 32%inst 9%fn 6%post 5%timeline 5%frame 4%master 2%title 0%song 0%order 0%pan 0%uniform 0%text 0%
play order
01212345656567
order list · loop returns to order 13 · 14 entries
timeline
| at | event | value | source | |
|---|---|---|---|---|
| 0:00 | scn | 0 | L18 | |
| 0:00 | glow | 0.10 | L18 | |
| 0:00 | zoom | 0.00 | L18 | |
| 0:00 | titleA | 0.0 | L18 | |
| 0:01 | titleA | 0.90 | L19 | |
| 0:02 | glow | 0.50 | L20 | |
| 0:02 | titleA | 0.90 | L20 | |
| 0:03 | titleA | 0.00 | L21 | |
| 0:04 | glow | 0.62 | L22 | |
| 0:04 | zoom | 0.15 | L22 | |
| 0:06 | glow | 0.70 | L23 | |
| 0:06 | zoom | 0.22 | L23 | |
| 0:08 | glow | 0.80 | L24 | |
| 0:08 | zoom | 0.30 | L24 | |
| 0:10 | scn | 1 | L25 | |
| 0:10 | glow | 0.85 | L25 | |
| 0:10 | zoom | 0.40 | L25 | |
| 0:11 | glow | 1.00 | L26 | |
| 0:11 | zoom | 0.50 | L26 | |
| 0:13 | scn | 2 | L27 | |
| 0:13 | glow | 1.00 | L27 | |
| 0:13 | zoom | 0.55 | L27 | |
| 0:15 | glow | 1.10 | L28 | |
| 0:15 | zoom | 0.60 | L28 | |
| 0:17 | scn | 1 | L29 | |
| 0:17 | glow | 1.00 | L29 | |
| 0:17 | zoom | 0.65 | L29 | |
| 0:19 | glow | 1.15 | L30 | |
| 0:19 | zoom | 0.62 | L30 | |
| 0:21 | scn | 2 | L31 | |
| 0:21 | glow | 1.15 | L31 | |
| 0:21 | zoom | 0.70 | L31 | |
| 0:23 | scn | 0 | L32 | |
| 0:23 | glow | 1.25 | L32 | |
| 0:23 | zoom | 0.85 | L32 | |
| 0:23 | titleA | 0.0 | L32 | |
| 0:24 | titleA | 0.70 | L33 | |
| 0:25 | glow | 1.35 | L34 | |
| 0:25 | zoom | 1.00 | L34 | |
| 0:25 | titleA | 0.95 | L34 |
Event times are derived from the order list, pattern lengths, BPM and RPB. The timeline loops with the song, so this is the first pass.
resources
| kind | name | info | value |
|---|---|---|---|
| text | tlabel | 6 | CINDER |
source
1# @description A burning coal, an ember vortex and a wall of fire over dark techno at 126 BPM. The last bar keeps the fire alive.
2# @tags techno, procedural
3# @model DeepSeek V4.1 Flash
4# @collection Written by the models
5# @music dark techno in D minor: distorted sine kick, filtered-noise snare, wavefolded/SVF bass, FM bell lead, NNA pad, dual delay and reverb
6# @visual three bar-cut scenes: glowing coal fissures over warped voronoi/fbm, a spiral furnace with long-exposure feedback trails, a scrolling fbm fire wall; ember bloom, kick chromatic split, grain
7# @duration 27
8# cinder.dmt - a burning coal, an ember vortex and a wall of fire.
9# Dark techno at 126 BPM; the last bar keeps the fire alive.
10title CINDER
11song bpm=126 speed=6 rpb=4 channels=6 loop=13 volume=0.44
12order 0 1 2 1 2 3 4 5 6 5 6 5 6 7
13pan 0.5 0.5 0.58 0.5 0.44 0.6
15text tlabel "CINDER"
17timeline {
18 0:00 scn=0 glow=0.10 zoom=0.00 titleA=0.0
19 0:08 titleA=0.90
20 1:00 glow=0.50 titleA=0.90
21 1:08 titleA=0.00
22 2:00 glow=0.62 zoom=0.15
23 3:00 glow=0.70 zoom=0.22
24 4:00 glow=0.80 zoom=0.30
25 5:00 scn=1 glow=0.85 zoom=0.40
26 6:00 glow=1.00 zoom=0.50
27 7:00 scn=2 glow=1.00 zoom=0.55
28 8:00 glow=1.10 zoom=0.60
29 9:00 scn=1 glow=1.00 zoom=0.65
30 10:00 glow=1.15 zoom=0.62
31 11:00 scn=2 glow=1.15 zoom=0.70
32 12:00 scn=0 glow=1.25 zoom=0.85 titleA=0.0
33 12:08 titleA=0.70
34 13:00 glow=1.35 zoom=1.00 titleA=0.95
35}
37# ------------------------------------------------------------------ instruments
38inst kick {
39 f = 46 + 540 * exp(-t * 42)
40 $p = $p + f / sr
41 body = sin($p * tau) * exp(-t * 7)
42 click = hp(noise(), 2400) * exp(-t * 120) * 0.5
43 out(dist(body * 1.7 + click, 1.4) * 0.86)
44}
45inst snare {
46 tone = sin(tau * 186 * t) * exp(-t * 24) * 0.5
47 n = svf(noise(), 1400 + 3200 * exp(-t * 38), 0.55)
48 out((n * 1.15 + tone) * exp(-t * 9) * 0.5)
49}
50inst hat {
51 out(hp(noise(), 7600) * exp(-t * (36 + 90 * (1 - vel))) * 0.26)
52}
53inst bass {
54 e = env(0.004, 0.10, 0.55, 0.07)
55 sub = sin(ph * tau) * 0.85
56 g = saw(ph) * 0.5 + sqr(ph * 0.503, 0.35 + 0.15 * sin(t * 7)) * 0.32
57 s = fold((g * (1.0 + 1.1 * e) + sub) * 1.05, 1.45)
58 s = svf(s, 150 + 1500 * e * e, 0.42)
59 out(dist(s, 1.5) * e * 0.5)
60}
61inst bell {
62 e = exp(-t * 3.1)
63 m = sin(ph * tau * 3.01 + 1.1 * sin(t * 8.5)) * exp(-t * 5.5)
64 s = sin(ph * tau + m * 1.4) + 0.28 * sin(ph * tau * 2.01)
65 out(s * e * 0.25)
66}
67inst pad nna=continue {
68 e = env(0.55, 1.2, 0.78, 1.7)
69 s = usaw(freq, 0.20) + usaw(freq * 1.5, 0.14) * 0.34
70 s = svf(s, 280 + 420 * (0.5 + 0.5 * sin(t * 0.37)) + 260 * mp1, 0.18)
71 out(s * e * 0.2)
72}
74master {
75 dl = dly(l, 0.357, 0.40)
76 dr = dly(r, 0.476, 0.40)
77 w = verb(l * 0.5 + r * 0.5, 0.82, 0.44)
78 out(dist(l + dr * 0.22 + w * 0.18, 1.05), dist(r + dl * 0.22 + w * 0.18, 1.05))
79}
81# --------------------------------------------------- 0: intro, Dm
82pattern 0 rows=16 {
83 C-2 1 34 | . | C-6 3 08 | D-1 4 24 | . | D-3 6 22
84 .
85 . | . | C-6 3 14
86 .
87 . | . | C-6 3 08
88 .
89 . | . | C-6 3 14 | D-2 4 22
90 .
91 C-2 1 30 | . | C-6 3 08 | . | A-4 5 18
92 .
93 . | . | C-6 3 14 | D-1 4 24
94 .
95 . | . | C-6 3 08
96 .
97 C-2 1 26 | . | C-6 3 14 | A-1 4 20 | F-5 5 14
98 .
99}
100# --------------------------------------------------- 1: groove, Dm
101pattern 1 rows=16 {
102 C-2 1 40 | . | C-6 3 10 | D-1 4 40 | . | D-3 6 26
103 .
104 . | . | C-6 3 20 | D-1 4 32
105 . | . | . | D-2 4 26
106 C-2 1 38 | C-3 2 34 | C-6 3 10
107 .
108 . | . | C-6 3 20 | D-1 4 34
109 . | . | . | A-1 4 26
110 C-2 1 40 | . | C-6 3 10 | D-1 4 40
111 .
112 . | . | C-6 3 20 | D-2 4 32
113 . | . | . | F-1 4 26
114 C-2 1 38 | C-3 2 34 | C-6 3 10
115 .
116 . | . | C-6 3 20 | A-1 4 36 | A-4 5 20
117 . | . | . | C-2 4 26
118}
119# --------------------------------------------------- 2: groove, Bb
120pattern 2 rows=16 {
121 C-2 1 40 | . | C-6 3 10 | A#1 4 40 | . | A#3 6 26
122 .
123 . | . | C-6 3 20 | A#1 4 32
124 . | . | . | A#2 4 26
125 C-2 1 38 | C-3 2 34 | C-6 3 10
126 .
127 . | . | C-6 3 20 | A#1 4 34
128 . | . | . | F-1 4 26
129 C-2 1 40 | . | C-6 3 10 | A#1 4 40
130 .
131 . | . | C-6 3 20 | A#2 4 32 | D-5 5 20
132 . | . | . | F-2 4 26
133 C-2 1 38 | C-3 2 34 | C-6 3 10
134 .
135 . | . | C-6 3 20 | F-1 4 34 | F-5 5 18
136 . | . | . | C-2 4 26
137}
138# --------------------------------------------------- 3: break, Gm
139pattern 3 rows=16 {
140 . | . | C-6 3 08 | G-1 4 26 | G-4 5 24 | G-3 6 28
141 .
142 . | . | . | . | A#4 5 22
143 .
144 . | C-3 2 20 | C-6 3 10
145 . | . | . | . | D-5 5 24
146 . | . | . | G-1 4 24
147 .
148 . | . | C-6 3 08 | . | G-5 5 26
149 .
150 . | C-3 2 24 | . | C-2 4 24 | F-5 5 22
151 .
152 . | . | C-6 3 10 | . | D-5 5 24
153 .
154 . | C-3 2 18 | . | G-1 4 22
155 .
156}
157# --------------------------------------------------- 4: build, A
158pattern 4 rows=16 {
159 C-2 1 40 | C-3 2 30 | C-6 3 12 | A-1 4 36 | . | A-2 6 28
160 C-2 1 22
161 C-2 1 34 | C-3 2 24 | C-6 3 18 | A-1 4 30
162 C-2 1 22
163 C-2 1 38 | C-3 2 30 | C-6 3 12 | A-1 4 34
164 C-2 1 24 | C-3 2 20 E92
165 C-2 1 34 | C-3 2 26 E92 | C-6 3 18 | A-2 4 30
166 C-2 1 24
167 C-2 1 40 | C-3 2 34 | C-6 3 12 | A-2 4 36
168 C-2 1 24 | C-3 2 22 E92
169 C-2 1 36 | C-3 2 30 E92 | C-6 3 18 | A-1 4 30
170 C-2 1 26 | C-3 2 24 E92
171 C-2 1 40 | C-3 2 36 | C-6 3 12 | A-1 4 36 | E-5 5 20
172 C-2 1 28 | C-3 2 26 E92
173 C-2 1 36 | C-3 2 32 E92 | C-6 3 18 | A-2 4 32
174 C-2 1 30 | C-3 2 30 E93 | C-6 3 22 | A-1 4 34 | G-5 5 22
175}
176# --------------------------------------------------- 5: drop, Dm
177pattern 5 rows=16 {
178 C-2 1 3E | C-3 2 36 | C-6 3 12 | D-1 4 3E | . | D-3 6 30
179 . | . | C-6 3 18 | D-2 4 28
180 C-2 1 40 | . | C-6 3 10 | D-1 4 36
181 . | . | C-6 3 18 | D-2 4 28
182 C-2 1 3E | C-3 2 36 | C-6 3 12 | D-1 4 40 | A-4 5 24
183 . | . | C-6 3 18 | A-1 4 26
184 C-2 1 40 | . | C-6 3 10 | D-1 4 36
185 . | . | C-6 3 18 | D-2 4 28
186 C-2 1 3E | C-3 2 36 | C-6 3 12 | D-1 4 3E
187 . | . | C-6 3 18 | F-1 4 28
188 C-2 1 40 | . | C-6 3 10 | D-2 4 36 | D-5 5 22
189 . | . | C-6 3 18 | A-1 4 26
190 C-2 1 3E | C-3 2 36 | C-6 3 12 | D-1 4 40
191 . | . | C-6 3 18 | D-2 4 28
192 C-2 1 40 | . | C-6 3 10 | A-1 4 34 | F-5 5 26
193 . | . | C-6 3 18 | D-2 4 30
194}
195# --------------------------------------------------- 6: peak, F
196pattern 6 rows=16 {
197 C-2 1 3E | C-3 2 36 | C-6 3 12 | F-1 4 3E | . | F-3 6 30
198 . | . | C-6 3 18 | F-2 4 28
199 C-2 1 40 | . | C-6 3 10 | F-1 4 36
200 . | . | C-6 3 18 | F-2 4 28
201 C-2 1 3E | C-3 2 36 | C-6 3 12 | F-1 4 40 | C-5 5 24
202 . | . | C-6 3 18 | C-2 4 26
203 C-2 1 40 | . | C-6 3 10 | F-1 4 36
204 . | . | C-6 3 18 | F-2 4 28
205 C-2 1 3E | C-3 2 36 | C-6 3 12 | F-1 4 3E
206 . | . | C-6 3 18 | A-1 4 28
207 C-2 1 40 | . | C-6 3 10 | F-2 4 36 | F-5 5 22
208 . | . | C-6 3 18 | C-2 4 26
209 C-2 1 3E | C-3 2 36 | C-6 3 12 | F-1 4 40
210 . | . | C-6 3 18 | F-2 4 28
211 C-2 1 40 | . | C-6 3 10 | C-2 4 34 | A-5 5 26
212 . | . | C-6 3 18 | F-2 4 30
213}
214# --------------------------------------------------- 7: final, A
215pattern 7 rows=16 {
216 C-2 1 40 | C-3 2 38 | C-6 3 14 | A-1 4 40 | E-5 5 26 | A-3 6 32
217 C-2 1 30 | . | C-6 3 18 | A-2 4 30
218 C-2 1 3E | C-3 2 36 | C-6 3 12 | A-1 4 40
219 . | . | C-6 3 18 | A-2 4 30
220 C-2 1 40 | C-3 2 38 | C-6 3 14 | A-1 4 3E | A-5 5 26
221 . | . | C-6 3 18 | C-2 4 28
222 C-2 1 3E | . | C-6 3 12 | A-1 4 40
223 . | . | C-6 3 18 | E-2 4 30
224 C-2 1 40 | C-3 2 38 | C-6 3 14 | A-1 4 40
225 . | . | C-6 3 18 | A-2 4 30
226 C-2 1 3E | . | C-6 3 12 | A-1 4 40 | C-6 5 26
227 . | . | C-6 3 18 | A-2 4 28
228 C-2 1 40 | C-3 2 38 | C-6 3 14 | A-1 4 3E
229 . | . | C-6 3 18 | C-2 4 30
230 C-2 1 3E | C-3 2 34 | C-6 3 16 | A-1 4 40 | E-5 5 26
231 C-2 1 40 | . | C-6 3 22 | A-2 4 32 | A-5 5 22
232}
234# ------------------------------------------------------------------ visuals
235uniform kickE snE hatE bellE glow zoom titleA scn cut
237fn titleline(s, py, sz) {
238 # centred glow text in the u,v plane
239 n = strlen(s)
240 cx = (u + n * sz * 0.5) / sz
241 cy = (py - v) / sz
242 i = floor(cx)
243 g = glyph(str(s, i), fract(cx), fract(cy))
244 return g * step(0, cx) * step(cx, n) * step(0, cy) * step(cy, 1)
245}
247fn sparks(speed, wide, hot) {
248 # additive rising ember streaks; call inside a pixel program
249 repeat k 9 {
250 sx = (hash(k * 13.71 + 5.1) - 0.5) * wide * aspect
251 sy = fract(hash(k * 7.37 + 1.9) + time * speed * (0.45 + 0.9 * hash(k * 3.1))) * 2.3 - 1.15
252 sx = sx + 0.09 * sin(time * 1.3 + k * 2.1)
253 d = len(u - sx, (v - sy) * 0.35)
254 core = 1 - smooth(0, 0.006 + 0.008 * hash(k * 5.7), d)
255 halo = 1 - smooth(0, 0.018 + 0.014 * hash(k * 2.9), d)
256 fl = 0.5 + 0.5 * sin(time * (6 + 6 * hash(k * 9.1)) + k * 3.3)
257 gl = core * 1.7 + halo * 0.22
258 cadd(gl * fl * hot * 1.25, gl * fl * hot * 0.52, gl * fl * hot * 0.11)
259 }
260}
262frame {
263 kickE = exp(-trig(0) * 10) * step(0.5, vel(0))
264 snE = exp(-trig(1) * 13)
265 hatE = exp(-trig(2) * 42)
266 bellE = exp(-trig(4) * 3.2)
267 glow = evtl(glow)
268 zoom = evtl(zoom)
269 titleA = evtl(titleA)
270 scn = evt(scn)
271 ps = $scn
272 $scn = scn
273 cut = step(0.5, abs(scn - ps))
274 select(scn)
275}
277pixel coal {
278 # a lumpy burning boulder, lit from the inside by its own fissures
279 z = 0.92 - 0.12 * zoom - 0.03 * sin(time * 0.37) + 0.03 * kickE
280 ca = 0.24 + 0.10 * sin(time * 0.21)
281 rx = rot(u, v, ca) * z
282 ry = r1 * z
284 lump = fbm(rx * 1.7 + 4.3, ry * 1.7 - 2.1, 3)
285 rad = len(rx, ry) + 0.17 * (lump - 0.5)
286 inside = 1 - smooth(0.60, 0.665, rad)
287 depth = sqrt(max(0, 1 - (rad / 0.64) ^ 2))
289 n1 = fbm(rx * 3.1 + 11.3, ry * 3.1 - 7.7, 4)
290 n2 = fbm(rx * 7.0 + n1 * 2.2 + time * 0.03, ry * 7.0 - n1 * 2.2, 3)
292 # fissure network: voronoi cell borders, only some cells molten
293 vx = rx * 3.4 + (n1 - 0.5) * 2.2
294 vy = ry * 3.4 + (n2 - 0.5) * 2.2
295 d1 = vor(vx, vy)
296 id = r1
297 seam = exp(-(r2 - d1) * 30)
298 hotcell = 0.30 + 0.70 * hash(id * 41.3 + 3.7)
299 flick = 0.72 + 0.40 * sin(time * 2.3 + id * 31.0) + 0.22 * sin(time * 7.1 + id * 7.0)
300 lava = seam * hotcell * flick * (0.42 + 0.90 * glow) * (1 + 1.15 * kickE)
302 # magma pooling in the low crust and the general inner heat of the coal
303 pool = smooth(0.58, 0.24, n1) * (0.05 + 0.30 * glow)
304 inner = (0.30 + 0.70 * depth) * (0.14 + 0.42 * glow) * (0.4 + 0.6 * n2)
305 hot = clamp(lava + pool * inside + inner * inside, 0, 1.55)
306 hv = clamp(hot, 0, 1)
308 crust = 0.014 + 0.055 * n2 + 0.025 * depth
309 cr = crust + hv * 1.05
310 cg = crust * 0.62 + hv ^ 1.9 * 0.62
311 cb = crust * 0.45 + hv ^ 4.5 * 0.20
313 # deep space behind the boulder, with a faint red halo
314 haze = 0.010 + 0.030 * exp(-rad * 1.4)
315 cr = cr * inside + haze * 0.7
316 cg = cg * inside + haze * 0.22
317 cb = cb * inside + haze * 1.0
318 rgb(cr, cg, cb)
320 # shock ring on the kick
321 ring = exp(-abs(rad - (0.5 + 0.55 * fract(trig(0) * 1.6))) * 26) * kickE * 0.35
322 cadd(ring, ring * 0.35, ring * 0.08)
324 sparks(0.075, 2.35, 0.7 + 0.5 * glow)
325 # the name, written in embers at the bottom
326 lg = titleline(tlabel, -0.66, 0.20) * titleA
327 lg = lg * (0.72 + 0.28 * sin(time * 10.0 + u * 9.0))
328 cadd(lg * 1.05, lg * 0.58, lg * 0.22)
329}
331pixel vortex {
332 # an accelerating spiral of embers around a furnace core
333 rr = len(u, v)
334 th = atan2(v, u)
335 spin = 0.85 + 0.95 * zoom + 0.05 * sin(time * 0.31)
336 logr = log(rr + 0.04)
338 # spiral filaments, broken into embers by turbulence
339 arm = th * 3.0 + logr * 2.4 - time * spin * 1.6
340 fil = (0.5 + 0.5 * sin(arm)) ^ 7.0
341 n = fbm(th * 3.1 + time * 0.15, logr * 5.0 - time * 0.8, 4)
342 fil = fil * (0.20 + 1.25 * smooth(0.38, 0.78, n))
343 heat = fil * 0.95 / (0.32 + rr * 1.5)
345 # a second, counter-rotating family of arcs, dimmer
346 arm2 = th * 5.0 - logr * 4.1 + time * spin * 0.7
347 fil2 = (0.5 + 0.5 * sin(arm2)) ^ 10.0
348 heat = heat + fil2 * 0.22 / (0.50 + rr * 2.0)
350 # fine high-harmonic streaks
351 arm3 = th * 13.0 + logr * 5.0 - time * spin * 2.4
352 heat = heat + ((0.5 + 0.5 * sin(arm3)) ^ 22.0) * 0.30 / (0.45 + rr * 1.8)
354 core = exp(-rr * 7.0) * (0.55 + 0.65 * kickE)
355 heat = clamp(heat * (0.50 + 0.70 * glow) + core * 0.75, 0, 1.2)
357 rgb(heat * 1.10, heat ^ 2.0 * 0.80, heat ^ 3.8 * 0.30)
358 # long-exposure streaks: the previous frame expands and twists outward
359 cprevz(0.5, 0.5, 1.010 + 0.006 * kickE, 0.005 + 0.003 * sin(time * 0.7), 0.30)
361 # spark orbit ring
362 repeat k 6 {
363 a = time * (0.55 + 0.5 * hash(k * 7.1)) + k * 1.047
364 rr2 = 0.18 + 0.55 * fract(hash(k * 3.3) + time * 0.03)
365 px = rr2 * cos(a) * 1.1
366 py = rr2 * sin(a) * 0.9
367 d = len(u - px, v - py)
368 sp = 1 - smooth(0, 0.010 + 0.010 * hash(k * 5.5), d)
369 cadd(sp * 1.2, sp * 0.55, sp * 0.12)
370 }
371}
373pixel fire {
374 # a wall of fire: tall thin turbulence under a per-column flame height
375 yb = clamp(1 - y, 0, 1)
376 sway = 0.10 * sin(yb * 5.0 - time * 1.4) + 0.05 * sin(yb * 11.0 + time * 0.9)
377 n1 = fbm(x * 9.0 + sway, yb * 2.0 - time * 1.5, 4)
378 n2 = fbm(x * 22.0 - sway * 2.0, yb * 5.0 - time * 2.8, 3)
379 fil = smooth(0.42, 0.60, n1 * 0.65 + n2 * 0.35)
381 H = 0.66 + 0.32 * fbm(x * 3.2 + 7.0, 0.6 + time * 0.10, 3)
382 column = 1 - smooth(0.0, 1.0, yb / max(H, 0.15))
383 heat = column * (0.16 + 0.85 * fil) * (0.70 + 0.40 * glow)
385 # white-hot base with its own flicker
386 base = exp(-yb * 7.0) * (0.50 + 0.35 * fbm(x * 16.0, time * 2.0, 2))
387 heat = clamp(heat + base * (0.42 + 0.18 * kickE), 0, 1.0)
389 # the word burns inside the flame
390 logo = titleline(tlabel, 0.16, 0.18) * clamp(titleA * 1.6, 0, 1)
391 heat = max(heat, logo * (0.70 + 0.25 * sin(time * 9.0 + u * 20.0)))
393 # side walls keep the fire in a column
394 wall = smooth(0.0, 0.30, 1.0 - abs(u) / aspect)
395 heat = heat * (0.55 + 0.45 * wall)
396 heat = clamp(heat * (1 + 0.22 * kickE), 0, 1.0)
398 rgb(heat * 1.10, heat ^ 2.5 * 1.0, heat ^ 5.5 * 0.40)
399 # a little memory of the previous flame makes the tongues lick and smear
400 cprev(x, y + 0.004, 0.12 * glow)
401 sparks(0.10, 2.2, 0.55 + 0.35 * glow)
402}
404post {
405 # ember bloom, kick chromatic split, dust and a warm vignette
406 cr = tap(0, 0)
407 cg = r1
408 cb = r2
409 sh = floor(4 * kickE)
410 ar = tap(-1 - sh, 0)
411 ab = tap(1 + sh, 1)
412 bl = (tap(-3, 0) + tap(3, 0) + tap(0, 3) + tap(0, -3) + tap(-2, 2) + tap(2, -2) + tap(-2, -2) + tap(2, 2)) * 0.125
413 bl = bl * (1 - 0.45 * step(0.5, scn - 1.5))
414 st = tap(0, 4)
415 rgb(cr * 0.92 + ar * 0.20 + bl * 0.42 + st * 0.09,
416 cg * 0.96 + bl * 0.30 + st * 0.04,
417 cb * 0.94 + ab * 0.22 + bl * 0.40 + st * 0.02)
418 du = (hash(x * w * 0.37 + y * h * 0.71 + frame * 7.3) - 0.5) * 0.045
419 cadd(du, du * 0.8, du * 0.6)
420 d = len(u, v)
421 cmul(max(0.48, 1 - 0.34 * d))
422 cadd(0.05 * kickE + 0.22 * cut, 0.014 * kickE + 0.08 * cut, 0.02 * cut)
423}
Click a line number to link to that line.