1
# QDSLC version 0.0.1-alpha
3
param uniform string shadingspace "shader"
4
param uniform float envrad 100
5
param uniform float ringnoisefreq 1
6
param uniform float trunkwobblefreq 0.025
7
param uniform float ringfreq 8
8
param uniform float varylum 0.5
9
param uniform float divotdepth 0.012
10
param uniform float ringy 1
11
param uniform float raysamples 1
12
param uniform color Cgroove 0.02 0.02 0.02
13
param uniform float roughness 0.1
14
param uniform color Cdarkwood 0.15 0.077 0.028
15
param uniform float blur 0
16
param uniform float trunkwobble 0.15
17
param uniform color Clightwood 0.5 0.2 0.067
18
param uniform float Ka 1
19
param uniform float ringnoise 0.02
20
param uniform float groovedepth 0.03
21
param uniform float Kd 1
22
param uniform float planklength 30
23
param uniform float varyhue 0.015
24
param uniform float angularwobblefreq 1.5
25
param uniform float Ks 0.75
26
param uniform float Kr 1
27
param uniform string envname ""
28
param uniform float angularwobble 1
29
param uniform float plankwidth 2
30
param uniform float grooveheight 0.05
31
param uniform float grainfreq 25
32
param uniform float shadingfreq 1
33
param uniform float ringunevenness 0.5
34
param uniform float truedisp 0
35
param uniform string envspace "world"
36
param uniform float edgewidth 0.1
37
param uniform float grainy 1
38
param uniform float rayjitter 0
39
param uniform float varnishlump 0.01
40
param uniform float eta 1.5
41
param uniform float groovewidth 0.05
42
param uniform float varysat 0.1
43
param uniform float varnishlumpfreq 0.5
44
temp varying float tplank
45
temp varying float w_1
47
temp varying float height
49
temp varying float inplank
51
temp varying float specadjusted
53
temp varying float grain
54
temp varying float s_1
55
temp varying float i_1
56
temp varying float swhichplank
58
temp varying float twhichplank
59
temp varying normal Nf
61
temp varying float x1_1
62
temp varying point Pshad
63
temp varying color Cwood
64
temp varying float nedge_1
66
temp varying float wood
68
temp varying float inring
69
temp varying float dPgrain
71
temp varying float dPshad
72
temp varying float dtt
73
temp varying float newt
74
temp uniform float amp
75
temp varying float dss
76
temp varying float plankindex
77
temp varying float disp
78
temp varying float spacescale
79
temp varying float amp_1
80
temp varying float grain1valid
81
temp varying color Chsl
82
temp varying float edgedisp
83
temp varying vector sum
84
temp varying float x0_1
85
temp varying float splank
88
temp varying point Pgrain
89
temp varying float nedge
91
temp varying point Ppat
92
temp varying vector offset
93
temp varying vector Ndisp
94
temp varying point Pring
97
temp varying vector $1
98
temp uniform vector $2
99
temp uniform vector $3
100
temp uniform vector $4
101
temp varying vector $5
102
temp varying vector $6
103
temp varying vector $7
104
temp varying float $8
105
temp varying vector $9
106
temp varying vector $10
107
temp varying vector $11
108
temp varying vector $12
109
temp uniform float $13
110
temp uniform vector $14
111
temp varying float $15
112
temp varying float $16
113
temp varying float $17
114
temp varying float $18
115
temp uniform float $19
116
temp varying float $20
117
temp uniform float $21
118
temp varying float $22
119
temp varying float $23
120
temp uniform float $24
121
temp varying float $25
122
temp varying float $26
123
temp varying float $27
124
temp varying float $28
125
temp varying float $29
126
temp varying float $30
127
temp uniform float $31
128
temp uniform bool $32
129
temp varying bool $33
130
temp uniform vector $34
131
temp varying vector $35
132
temp varying vector $36
133
temp varying vector $37
136
const float $40 1e-06
143
const vector $47 1 5 10
144
const string $48 "hsl"
147
const vector $51 1 1 0.05
156
const vector $60 1 1 0
157
const string $61 "shader"
158
const vector $62 1 1 0.1
162
const string $66 "rgb"
163
global Ci Oi I N P dv du Os
165
ptransform1 $6 shadingspace P
166
mulvvf Pshad $6 shadingfreq
189
divfff $22 ss plankwidth
190
floor swhichplank $22
191
mulfff $22 swhichplank plankwidth
193
cellnoise1f $22 swhichplank
194
mulfff $22 planklength $22
196
divfff $22 newt planklength
197
floor twhichplank $22
198
mulfff $22 twhichplank planklength
199
subfff tplank newt $22
200
divfff $19 groovewidth $45
202
divfff w dss plankwidth
203
divfff $8 $22 plankwidth
207
divfff nedge groovewidth plankwidth
226
divfff $21 grooveheight $45
228
divfff w_1 dtt planklength
229
divfff $17 $20 planklength
233
divfff nedge_1 grooveheight planklength
234
subfff $17 $39 nedge_1
239
subfff $18 $18 nedge_1
242
subfff $18 $39 nedge_1
247
subfff $15 $15 nedge_1
252
mulfff inplank $8 $17
253
mulfff $20 $59 twhichplank
254
addfff plankindex swhichplank $20
255
subfff $20 splank $44
256
mulfff $17 $54 tplank
257
subfff $17 height $17
258
movvf3 $5 $20 $17 tplank
259
cellnoise2v $36 swhichplank twhichplank
264
mulfff $17 dPshad ringnoisefreq
265
mulvvf $37 Ppat ringnoisefreq
278
smoothstep $29 $63 $52 fw
289
mulvvf $35 offset ringnoise
290
addvvv Pring Ppat $35
292
mulfff $16 $16 trunkwobblefreq
297
mulvvf $11 $11 trunkwobble
298
maddvvv Pring $11 $60
305
mulfff r $27 ringfreq
306
smoothstep $27 $38 $43 r
307
mulfff $27 angularwobble $27
308
mulvvf $10 Pring angularwobblefreq
325
smoothstep $28 $63 $52 dr
328
maddfff r ringunevenness $27
330
smoothstep $28 $64 $58 $27
331
smoothstep $25 $50 $49 $27
332
subfff inring $28 $25
333
mulvvf $10 Ppat grainfreq
334
mulvvv Pgrain $10 $51
345
smoothstep $28 $63 $57 dPgrain
346
subfff grain1valid $39 $28
347
ifgtff $33 grain1valid $38
352
mulfff g grain1valid $28
353
mulfff $28 $50 inring
357
clampf $28 $28 $38 $39
359
smoothstep $28 $44 $39 g
363
mulfff $28 $55 grain1valid
365
mulfff inring inring $28
369
mulvvf Pgrain Pgrain $45
370
mulfff dPgrain dPgrain $45
371
mulfff amp_1 amp_1 $44
376
mulfff $28 inring ringy
377
mixf wood $28 $39 grain
378
mixv Cwood Clightwood Cdarkwood wood
379
ctransform1 Chsl $48 Cwood
383
addfff $28 plankindex $41
386
maddfff h varyhue $28
387
subfff $28 plankindex $46
390
mulfff $28 varysat $28
393
addfff $28 plankindex $53
396
mulfff $28 varylum $28
400
clampf $25 s_1 $38 $39
402
movvf3 Chsl $28 $25 $26
405
clampv $10 Chsl $34 $14
406
ctransform2 Cwood $48 $66 $10
407
mixv Cwood Cgroove Cwood inplank
408
subfff $31 plankwidth edgewidth
409
smoothstep $25 $38 edgewidth splank
410
smoothstep $26 $31 plankwidth splank
411
subfff edgedisp $25 $26
412
subfff $24 planklength edgewidth
413
smoothstep $26 $38 edgewidth tplank
414
smoothstep $23 $24 planklength tplank
416
mulfff edgedisp edgedisp $26
420
mulfff $26 $26 divotdepth
421
subfff $23 edgedisp $39
422
mulfff $23 groovedepth $23
424
mulvvf $9 Pshad varnishlumpfreq
428
mulfff $23 dPshad varnishlumpfreq
429
smoothstep $23 $63 $52 $23
432
maddfff disp varnishlump $26
433
vtransform1 $9 $61 Nf
435
maxf $26 spacescale $40
438
maddvvf P Ndisp truedisp
439
subfff $13 $39 truedisp
447
subfff $23 $39 inplank
449
subfff specadjusted $26 $23
450
mulfff $26 specadjusted Ks
458
specular $12 Nf $12 roughness