summaryrefslogtreecommitdiffstats
path: root/3ner.shader
blob: 678e757ecfb8794be4a8cbe803229ea70030a12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
Shader "yum_food/3ner"
{
  // Certain parts of the Properties below are derived from Poiyomi's toon
  // shader. The license is available in this repository at the top of
  // poi.cginc. C.
	Properties
  {
      [HideInInspector] shader_master_label("<color=#de719bff>2ner</color>", Float) = 0
      [HideInInspector] shader_is_using_thry_editor("", Float) = 0
      [HideInInspector] shader_presets("ThryPresetsExample", Float) = 0
      [HideInInspector] shader_properties_label_file("ThryLabelExample", Float) = 0

      //ifex _ShaderOptimizerEnabled==0
      [HideInInspector] _ForgotToLockMaterial(";;YOU_FORGOT_TO_LOCK_THE_MATERIAL;", Int) = 0
      //endex
      [ThryShaderOptimizerLockButton] _ShaderOptimizerEnabled("", Int) = 0

      [ThryWideEnum(Opaque, 0, Cutout, 1, TransClipping, 9, Fade, 2, Transparent, 3, Additive, 4, Soft Additive, 5, Multiplicative, 6, 2x Multiplicative, 7)]_Mode("Rendering Preset--{on_value_actions:[
      {value:0,actions:[{type:SET_PROPERTY,data:render_queue=2000},{type:SET_PROPERTY,data:_AlphaForceOpaque=1}, {type:SET_PROPERTY,data:render_type=Opaque},            {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=1}, {type:SET_PROPERTY,data:_DstBlend=0},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=1}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=1}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=1}, {type:SET_PROPERTY,data:_OutlineDstBlend=0},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=0}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:1,actions:[{type:SET_PROPERTY,data:render_queue=2450},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=TransparentCutout}, {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=.5}, {type:SET_PROPERTY,data:_SrcBlend=1}, {type:SET_PROPERTY,data:_DstBlend=0},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=1}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=1}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=1}, {type:SET_PROPERTY,data:_OutlineDstBlend=0},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:9,actions:[{type:SET_PROPERTY,data:render_queue=2460},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=TransparentCutout}, {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0.01},  {type:SET_PROPERTY,data:_SrcBlend=5}, {type:SET_PROPERTY,data:_DstBlend=10}, {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=5}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=1}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=5}, {type:SET_PROPERTY,data:_OutlineDstBlend=10}, {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:2,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0.002},  {type:SET_PROPERTY,data:_SrcBlend=5}, {type:SET_PROPERTY,data:_DstBlend=10}, {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=5}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=5}, {type:SET_PROPERTY,data:_OutlineDstBlend=10}, {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:3,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=1}, {type:SET_PROPERTY,data:_DstBlend=10}, {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=1}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=1}, {type:SET_PROPERTY,data:_OutlineSrcBlend=1}, {type:SET_PROPERTY,data:_OutlineDstBlend=10}, {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:4,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=1}, {type:SET_PROPERTY,data:_DstBlend=1},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=1}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=1}, {type:SET_PROPERTY,data:_OutlineDstBlend=1},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:5,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=4}, {type:SET_PROPERTY,data:_DstBlend=1},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=4}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=4}, {type:SET_PROPERTY,data:_OutlineDstBlend=1},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:6,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=2}, {type:SET_PROPERTY,data:_DstBlend=0},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=2}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=2}, {type:SET_PROPERTY,data:_OutlineDstBlend=0},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]},
      {value:7,actions:[{type:SET_PROPERTY,data:render_queue=3000},{type:SET_PROPERTY,data:_AlphaForceOpaque=0}, {type:SET_PROPERTY,data:render_type=Transparent},       {type:SET_PROPERTY,data:_BlendOp=0}, {type:SET_PROPERTY,data:_BlendOpAlpha=4}, {type:SET_PROPERTY,data:_Cutoff=0},  {type:SET_PROPERTY,data:_SrcBlend=2}, {type:SET_PROPERTY,data:_DstBlend=3},  {type:SET_PROPERTY,data:_SrcBlendAlpha=1}, {type:SET_PROPERTY,data:_DstBlendAlpha=1},  {type:SET_PROPERTY,data:_AddSrcBlend=2}, {type:SET_PROPERTY,data:_AddDstBlend=1}, {type:SET_PROPERTY,data:_AddSrcBlendAlpha=0}, {type:SET_PROPERTY,data:_AddDstBlendAlpha=1}, {type:SET_PROPERTY,data:_AlphaToCoverage=0},  {type:SET_PROPERTY,data:_ZWrite=0}, {type:SET_PROPERTY,data:_ZTest=4},   {type:SET_PROPERTY,data:_AlphaPremultiply=0}, {type:SET_PROPERTY,data:_OutlineSrcBlend=2}, {type:SET_PROPERTY,data:_OutlineDstBlend=3},  {type:SET_PROPERTY,data:_OutlineSrcBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineDstBlendAlpha=1}, {type:SET_PROPERTY,data:_OutlineBlendOp=0}, {type:SET_PROPERTY,data:_OutlineBlendOpAlpha=4}]}
      }]}]}", Int) = 0

      [HideInInspector] m_start_Main("Main", Float) = 0
        _MainTex("Base color", 2D) = "white" {}
        _Color("Tint", Color) = (1, 1, 1, 1)

        [Normal] _BumpMap("Normal", 2D) = "bump" {}
        _BumpScale("Normal Scale", Float) = 1

        _MetallicGlossMap("Metallic (r) smoothness (a)", 2D) = "white" {}
        _Metallic("Metallic", Range(0, 1)) = 0
        _Glossiness("Smoothness", Range(0, 1)) = 0.5

        //ifex _Details_Enabled==0
        [HideInInspector] m_start_Details("Details", Float) = 0
          [ThryToggle(_DETAILS)] _Details_Enabled("Enable", Float) = 0
          [Normal] _DetailNormalMap("Normal", 2D) = "bump" {}
          _DetailNormalMapScale("Normal Scale", Float) = 1
          _DetailMask("Mask", 2D) = "white" {}
          [IntRange] _Details_UV_Channel("UV Channel", Range(0, 3)) = 0
        [HideInInspector] m_end_Details("Details", Float) = 0
        //endex

        //ifex _Ambient_Occlusion_Enabled==0
        [HideInInspector] m_start_Ambient_Occlusion("Ambient Occlusion", Float) = 0
          [ThryToggle(_AMBIENT_OCCLUSION)] _Ambient_Occlusion_Enabled("Enable", Float) = 0
          _OcclusionMap("Ambient Occlusion", 2D) = "white" {}
          _OcclusionStrength("Occlusion Strength", Range(0, 10)) = 1
        [HideInInspector] m_end_Ambient_Occlusion("Ambient Occlusion", Float) = 0
        //endex

        [HideInInspector] m_start_Matcaps("Matcaps", Float) = 0
          //ifex _Matcap0_Enabled==0
          [HideInInspector] m_start_Matcap0("Matcap 0", Float) = 0
            [ThryToggle(_MATCAP0)] _Matcap0_Enabled("Enable", Float) = 0
            _Matcap0("Matcap", 2D) = "white" {}
            _Matcap0_Strength("Strength", Range(0, 10)) = 1
            [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, Add Product, 4)] _Matcap0_Mode("Mode", Int) = 0
            [Toggle] _Matcap0_Invert("Invert", Float) = 0

            //ifex _Matcap0_Quantization_Enabled==0
            [HideInInspector] m_start_Matcap0_Quantization("Quantization", Float) = 0
              [ThryToggle(_MATCAP0_QUANTIZATION)] _Matcap0_Quantization_Enabled("Enable", Float) = 0
              [IntRange] _Matcap0_Quantization_Steps("Steps", Range(1, 32)) = 8
            [HideInInspector] m_end_Matcap0_Quantization("Quantization", Float) = 0
            //endex

            //ifex _Matcap0_Mask_Enabled==0
            [HideInInspector] m_start_Matcap0_Mask("Mask", Float) = 0
              [ThryToggle(_MATCAP0_MASK)] _Matcap0_Mask_Enabled("Enable", Float) = 0
              _Matcap0_Mask("Mask", 2D) = "white" {}
            [HideInInspector] m_end_Matcap0_Mask("Mask", Float) = 0
            //endex
          [HideInInspector] m_end_Matcap0("Matcap 0", Float) = 0
          //endex
        [HideInInspector] m_end_Matcaps("Matcaps", Float) = 0

        [HideInInspector] m_start_Rim_Lightings("Rim Lighting", Float) = 0
          //ifex _Rim_Lighting0_Enabled==0
          [HideInInspector] m_start_Rim_Lighting0("Rim Lighting 0", Float) = 0
            [ThryToggle(_RIM_LIGHTING0)] _Rim_Lighting0_Enabled("Enable", Float) = 0
            _Rim_Lighting0_Color("Color", Color) = (1, 1, 1, 1)
            _Rim_Lighting0_Center("Center", Range(0, 1)) = 1
            _Rim_Lighting0_Blur("Blur", Range(0, 0.5)) = 0.1
            [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, Add Product, 4)] _Rim_Lighting0_Mode("Mode", Int) = 1

            //ifex _Rim_Lighting0_Quantization_Enabled==0
            [HideInInspector] m_start_Rim_Lighting0_Quantization("Quantization", Float) = 0
              [ThryToggle(_RIM_LIGHTING0_QUANTIZATION)] _Rim_Lighting0_Quantization_Enabled("Enable", Float) = 0
              [IntRange] _Rim_Lighting0_Quantization_Steps("Steps", Range(1, 32)) = 8
            [HideInInspector] m_end_Rim_Lighting0_Quantization("Quantization", Float) = 0
            //endex

            //ifex _Rim_Lighting0_Mask_Enabled==0
            [HideInInspector] m_start_Rim_Lighting0_Mask("Mask", Float) = 0
              [ThryToggle(_RIM_LIGHTING0_MASK)] _Rim_Lighting0_Mask_Enabled("Enable", Float) = 0
              _Rim_Lighting0_Mask("Mask", 2D) = "white" {}
            [HideInInspector] m_end_Rim_Lighting0_Mask("Mask", Float) = 0
            //endex
          [HideInInspector] m_end_Rim_Lighting0("Rim Lighting 0", Float) = 0
          //endex
        [HideInInspector] m_end_Rim_Lightings("Rim Lighting", Float) = 0

        //ifex _Clearcoat_Enabled==0
        [HideInInspector] m_start_Clearcoat("Clearcoat", Float) = 0
          [ThryToggle(_CLEARCOAT)] _Clearcoat_Enabled("Enable", Float) = 0
          _Clearcoat_Strength("Strength", Range(0, 1)) = 0
          _Clearcoat_Roughness("Roughness", Range(0, 1)) = 0

          //ifex _Clearcoat_Mask_Enabled==0
          [HideInInspector] m_start_Clearcoat_Mask("Clearcoat Mask", Float) = 0
            [ThryToggle(_CLEARCOAT_MASK)] _Clearcoat_Mask_Enabled("Enable", Float) = 0
            _Clearcoat_Mask("Mask", 2D) = "white" {}
          [HideInInspector] m_end_Clearcoat_Mask("Clearcoat Mask", Float) = 0
          //endex
        [HideInInspector] m_end_Clearcoat("Clearcoat", Float) = 0
        //endex
      
        //ifex _Brightness_Clamp_Enabled==0
        [HideInInspector] m_start_Brightness_Clamp("Brightness Clamp", Float) = 0
          [ThryToggle(_BRIGHTNESS_CLAMP)] _Brightness_Clamp_Enabled("Enable", Float) = 0
          _Brightness_Clamp_Min("Min", Range(0, 1)) = 0.05
          _Brightness_Clamp_Max("Max", Range(0, 10)) = 10
        [HideInInspector] m_end_Brightness_Clamp("Brightness Clamp", Float) = 0
        //endex

        //ifex _Wrapped_Lighting_Enabled==0
        [HideInInspector] m_start_Wrapped_Lighting("Wrapped Lighting", Float) = 0
          [ThryToggle(_WRAPPED_LIGHTING)] _Wrapped_Lighting_Enabled("Enable", Float) = 0
          _Wrapped_Lighting_Amount("Amount", Range(0, 1)) = 0.5
        [HideInInspector] m_end_Wrapped_Lighting("Wrapped Lighting", Float) = 0
        //endex

        //ifex _Outlines_Enabled==0
        [HideInInspector] m_start_Outlines("Outlines", Float) = 0
          [ThryToggle(_OUTLINES)] _Outlines_Enabled("Enable", Float) = 0
          _Outlines_Color("Color", Color) = (1, 1, 1, 1)
          _Outlines_Width("Width", Range(0, 1)) = 0.01
          _Outlines_Thickness("Thickness", 2D) = "white" {}
        [HideInInspector] m_end_Outlines("Outlines", Float) = 0
        //endex

        //ifex _Shadows_Enabled==0
        [HideInInspector] m_start_Shadows("Shadows", Float) = 0
          [ThryToggle(_SHADOWS)] _Shadows_Enabled("Enable", Float) = 0

          [HideInInspector] m_start_Shadow_0("Shadow 0", Float) = 0
            _Shadow_0_Color("Color 0", Color) = (0, 0, 0, 0)
            _Shadow_0_Threshold("Threshold 0", Range(0, 1)) = 0.5
            _Shadow_0_Blur("Blur 0", Range(0, 1)) = 0.1
          [HideInInspector] m_end_Shadow_0("Shadow 0", Float) = 0

          //ifex _Shadow_1_Enabled==0
          [HideInInspector] m_start_Shadow_1("Shadow 1", Float) = 0
            [ThryToggle(_SHADOW_1)] _Shadow_1_Enabled("Enable", Float) = 0
            _Shadow_1_Color("Color 1", Color) = (0, 0, 0, 0)
            _Shadow_1_Threshold("Threshold 1", Range(0, 1)) = 0.5
            _Shadow_1_Blur("Blur 1", Range(0, 1)) = 0.1
          [HideInInspector] m_end_Shadow_1("Shadow 1", Float) = 0
          //endex

        [HideInInspector] m_end_Shadows("Shadows", Float) = 0
        //endex

        //ifex _Bent_Normals_Enabled==0
        [HideInInspector] m_start_Bent_Normals("Bent Normals", Float) = 0
          [ThryToggle(_BENT_NORMALS)] _Bent_Normals_Enabled("Enable", Float) = 0
          [Normal] _Bent_Normals_Map("Bent Normals", 2D) = "white" {}
          _Bent_Normals_Strength("Bent Normals Strength", Range(0, 10)) = 1
        [HideInInspector] m_end_Bent_Normals("Bent Normals", Float) = 0
        //endex

      [HideInInspector] m_end_Main("Main", Float) = 0

      [HideInInspector] m_start_Gimmicks("Gimmicks", Float) = 0
        //ifex _Geometry_Shader_Enabled==0
        [HideInInspector] m_start_Geometry_Shader("Geometry Shader", Float) = 0
          [ThryToggle(_GEOMETRY_SHADER)] _Geometry_Shader_Enabled("Enable", Float) = 0
          //ifex _Center_Offset_Enabled==0
          [HideInInspector] m_start_Center_Offset("Center offset", Float) = 0
            [ThryToggle(_CENTER_OFFSET)] _Center_Offset_Enabled("Enable", Float) = 0
            _Center_Offset_Heightmap("Heightmap", 2D) = "black" {}
            _Center_Offset_Factor("Factor", Range(-1, 1)) = 1
          [HideInInspector] m_end_Center_Offset("Center offset", Float) = 0
          //endex
        [HideInInspector] m_end_Geometry_Shader("Geometry Shader", Float) = 0
        //endex

        //ifex _Ray_Marching_Enabled==0
        [HideInInspector] m_start_Ray_Marching("Ray Marching", Float) = 0
          [ThryToggle(_RAY_MARCHING)] _Ray_Marching_Enabled("Enable", Float) = 0

          _Ray_Marching_Max_Dist("Max dist", Float) = 1
          _Ray_Marching_Min_Dist("Min dist", Float) = 0.0001
          _Ray_Marching_Max_Iter("Max iterations", Range(0,50)) = 10

          //ifex _Ray_Marching_Overstepping_Enabled==0
          [HideInInspector] m_start_Ray_Marching_Overstepping("Overstepping", Float) = 0
            [ThryToggle(_RAY_MARCHING_OVERSTEP)] _Ray_Marching_Overstepping_Enabled("Enable", Float) = 0
            _Ray_Marching_Overstepping_Factor("Factor", Range(1,5)) = 1.3
          [HideInInspector] m_end_Ray_Marching_Overstepping("Overstepping", Float) = 0
          //endex

          //ifex _Ray_Marching_Correct_Repetition_Enabled==0
          [HideInInspector] m_start_Ray_Marching_Correct_Repetition("Correct Repetition", Float) = 0
            [ThryToggle(_RAY_MARCHING_CORRECT_REPETITION)] _Ray_Marching_Correct_Repetition_Enabled("Enable", Float) = 0
          [HideInInspector] m_end_Ray_Marching_Correct_Repetition("Correct Repetition", Float) = 0
          //endex

          //ifex _Ray_Marching_Baked_Origins_Enabled==0
          [HideInInspector] m_start_Ray_Marching_Baked_Origins("Baked Origins", Float) = 0
            [ThryToggle(_RAY_MARCHING_BAKED_ORIGINS)] _Ray_Marching_Baked_Origins_Enabled("Enable", Float) = 0
            [IntRange] _Baked_Origins_UV_Channel_Index("UV Channel Index", Range(0, 3)) = 1
          [HideInInspector] m_end_Ray_Marching_Baked_Origins("Baked Origins", Float) = 0
          //endex

          [HideInInspector] m_start_Ray_Marching_Instancing("Instancing and domain repetition", Float) = 0
            //ifex _Ray_Marching_Cart_Instancing_Enabled==0
            [HideInInspector] m_start_Ray_Marching_Cart_Instancing("Cartesian Instancing", Float) = 0
              [ThryToggle(_RAY_MARCHING_CART_INSTANCING)] _Ray_Marching_Cart_Instancing_Enabled("Enable", Float) = 0
              [IntRange] _Ray_Marching_Cart_Instancing_Count_X("Count X", Range(1,3)) = 1
              [IntRange] _Ray_Marching_Cart_Instancing_Count_Y("Count Y", Range(1,3)) = 1
              [IntRange] _Ray_Marching_Cart_Instancing_Count_Z("Count Z", Range(1,3)) = 1
              _Ray_Marching_Cart_Instancing_Span_X("Span X", Range(0,2)) = 0.1
              _Ray_Marching_Cart_Instancing_Span_Y("Span Y", Range(0,2)) = 0.1
              _Ray_Marching_Cart_Instancing_Span_Z("Span Z", Range(0,2)) = 0.1

              //ifex _Ray_Marching_Cart_Instancing_Offsets_Enabled==0
              [HideInInspector] m_start_Ray_Marching_Cart_Instancing_Offsets("Offsets", Float) = 0
                [ThryToggle(_RAY_MARCHING_CART_INSTANCING_OFFSETS)] _Ray_Marching_Cart_Instancing_Offsets_Enabled("Enable", Float) = 0
                _Ray_Marching_Cart_Instancing_Offsets_X_Every_Y("X every Y", Range(0,1)) = 0
                _Ray_Marching_Cart_Instancing_Offsets_X_Every_Z("X every Z", Range(0,1)) = 0
                _Ray_Marching_Cart_Instancing_Offsets_Y_Every_X("Y every X", Range(0,1)) = 0
                _Ray_Marching_Cart_Instancing_Offsets_Y_Every_Z("Y every Z", Range(0,1)) = 0
                _Ray_Marching_Cart_Instancing_Offsets_Z_Every_X("Z every X", Range(0,1)) = 0
                _Ray_Marching_Cart_Instancing_Offsets_Z_Every_Y("Z every Y", Range(0,1)) = 0
              [HideInInspector] m_end_Ray_Marching_Cart_Instancing_Offsets("Offsets", Float) = 0
              //endex
            [HideInInspector] m_end_Ray_Marching_Cart_Instancing("Cartesian Instancing", Float) = 0
            //endex

            //ifex _Ray_Marching_Cart_Grid_Enabled==0
            [HideInInspector] m_start_Ray_Marching_Cart_Grid("Cartesian Domain Repetition", Float) = 0
              [ThryToggle(_RAY_MARCHING_CART_GRID)] _Ray_Marching_Cart_Grid_Enabled("Enable", Float) = 0
              [IntRange] _Ray_Marching_Cart_Grid_Count_X("Count X", Range(0,40)) = 5
              [IntRange] _Ray_Marching_Cart_Grid_Count_Y("Count Y", Range(0,40)) = 5
              [IntRange] _Ray_Marching_Cart_Grid_Count_Z("Count Z", Range(0,40)) = 5
              _Ray_Marching_Cart_Grid_Span_X("Span X", Range(0,40)) = 0.1
              _Ray_Marching_Cart_Grid_Span_Y("Span Y", Range(0,40)) = 0.1
              _Ray_Marching_Cart_Grid_Span_Z("Span Z", Range(0,40)) = 0.1
            [HideInInspector] m_end_Ray_Marching_Cart_Grid("Cartesian Domain Repetition", Float) = 0
            //endex

            //ifex _Ray_Marching_Hex_Grid_Enabled==0
            [HideInInspector] m_start_Ray_Marching_Hex_Grid("Hexagonal Domain Repetition", Float) = 0
              [ThryToggle(_RAY_MARCHING_HEX_GRID)] _Ray_Marching_Hex_Grid_Enabled("Enable", Float) = 0
              _Ray_Marching_Hex_Grid_Count("CountX", Range(0,40)) = 5
            [HideInInspector] m_end_Ray_Marching_Hex_Grid("Hexagonal Domain Repetition", Float) = 0
            //endex
          [HideInInspector] m_end_Ray_Marching_Instancing("Instancing and domain repetition", Float) = 0

          //ifex _Ray_Marching_Scaling_Enabled==0
          [HideInInspector] m_start_Ray_Marching_Scaling("Scaling", Float) = 0
            [ThryToggle(_RAY_MARCHING_SCALING)] _Ray_Marching_Scaling_Enabled("Enable", Float) = 0
            _Ray_Marching_Scaling_Factor_X("Factor X", Range(0.9,1.1)) = 1
            _Ray_Marching_Scaling_Factor_Y("Factor Y", Range(0.9,1.1)) = 1
            _Ray_Marching_Scaling_Factor_Z("Factor Z", Range(0.9,1.1)) = 1
          [HideInInspector] m_end_Ray_Marching_Scaling("Scaling", Float) = 0
          //endex

          [HideInInspector] m_start_Ray_Marching_Primitives("Primitives", Float) = 0
            //ifex _Ray_Marching_Ball_Enabled==0
            [HideInInspector] m_start_Ray_Marching_Ball("Ball", Float) = 0
              [ThryToggle(_RAY_MARCHING_BALL)] _Ray_Marching_Ball_Enabled("Enable", Float) = 0
              _Ray_Marching_Ball_Radius("Radius", Range(0,1)) = 1
            [HideInInspector] m_end_Ray_Marching_Ball("Ball", Float) = 0
            //endex

            //ifex _Ray_Marching_Hexagon_Enabled==0
            [HideInInspector] m_start_Ray_Marching_Hexagon("Hexagon", Float) = 0
              [ThryToggle(_RAY_MARCHING_HEXAGON)] _Ray_Marching_Hexagon_Enabled("Enable", Float) = 0
              _Ray_Marching_Hexagon_Radius("Radius", Range(0,1)) = 0.1
              _Ray_Marching_Hexagon_Height("Height", Range(0,1)) = 0.1
            [HideInInspector] m_end_Ray_Marching_Hexagon("Hexagon", Float) = 0
            //endex
          [HideInInspector] m_end_Ray_Marching_Primitives("Primitives", Float) = 0

        [HideInInspector] m_end_Ray_Marching("Ray Marching", Float) = 0
        //endex

        //ifex _Logical_Time_Enabled==0
        [HideInInspector] m_start_Logical_Time("Logical Time", Float) = 0
          [ThryToggle(_LOGICAL_TIME)] _Logical_Time_Enabled("Enable", Float) = 0
          _Logical_Time("Time", Float) = 0
        [HideInInspector] m_end_Logical_Time("Logical Time", Float) = 0
        //endex

        //ifex _Vertex_Deformation_Enabled==0
        [HideInInspector] m_start_Vertex_Deformation("Vertex Deformation", Float) = 0
          [ThryToggle(_VERTEX_DEFORMATION)] _Vertex_Deformation_Enabled("Enable", Float) = 0

          [ThryToggle(_VERTEX_DEFORMATION_FRAGMENT_NORMALS)] _Vertex_Deformation_Fragment_Normals_Enabled("Fragment normals", Float) = 0
          [ThryToggle(_VERTEX_DEFORMATION_TESSELLATION)] _Vertex_Deformation_Tessellation_Enabled("Tesellation support", Float) = 1

          _Vertex_Deformation_Slot_0_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_0_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_0_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_0_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_0_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_0_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_0_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_0_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_0_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_0_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_1_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_1_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_1_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_1_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_1_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_1_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_1_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_1_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_1_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_1_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_2_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_2_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_2_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_2_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_2_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_2_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_2_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_2_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_2_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_2_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_3_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_3_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_3_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_3_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_3_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_3_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_3_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_3_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_3_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_3_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_4_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_4_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_4_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_4_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_4_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_4_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_4_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_4_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_4_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_4_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_5_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_5_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_5_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_5_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_5_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_5_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_5_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_5_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_5_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_5_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_6_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_6_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_6_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_6_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_6_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_6_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_6_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_6_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_6_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_6_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_7_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_7_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_7_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_7_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_7_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_7_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_7_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_7_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_7_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_7_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_8_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_8_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_8_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_8_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_8_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_8_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_8_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_8_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_8_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_8_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_9_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_9_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_9_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_9_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_9_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_9_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_9_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_9_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_9_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_9_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_10_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_10_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_10_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_10_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_10_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_10_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_10_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_10_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_10_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_10_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_11_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_11_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_11_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_11_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_11_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_11_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_11_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_11_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_11_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_11_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_12_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_12_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_12_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_12_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_12_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_12_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_12_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_12_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_12_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_12_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_13_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_13_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_13_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_13_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_13_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_13_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_13_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_13_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_13_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_13_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_14_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_14_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_14_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_14_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_14_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_14_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_14_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_14_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_14_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_14_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

          _Vertex_Deformation_Slot_15_Enabled("Enabled", Float) = 0
          _Vertex_Deformation_Slot_15_Opcode("Opcode", Integer) = 0
          _Vertex_Deformation_Slot_15_Float_0("Float 0", Float) = 0
          _Vertex_Deformation_Slot_15_Float_1("Float 1", Float) = 0
          _Vertex_Deformation_Slot_15_Float_2("Float 2", Float) = 0
          _Vertex_Deformation_Slot_15_Float_3("Float 3", Float) = 0
          _Vertex_Deformation_Slot_15_Vector_0("Vector 0", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_15_Vector_1("Vector 1", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_15_Vector_2("Vector 2", Vector) = (0, 0, 0, 0)
          _Vertex_Deformation_Slot_15_Vector_3("Vector 3", Vector) = (0, 0, 0, 0)

        [HideInInspector] m_end_Vertex_Deformation("Vertex Deformation", Float) = 0
        //endex

        //ifex _UV_Scroll_Enabled==0
        [HideInInspector] m_start_UV_Scroll("UV Scroll", Float) = 0
          [ThryToggle(_UV_SCROLL)] _UV_Scroll_Enabled("Enable", Float) = 0
          _UV_Scroll_Speed("Speed (u, v, 0, 0)", Vector) = (0, -1, 0, 0)
        [HideInInspector] m_end_UV_Scroll("UV Scroll", Float) = 0
        //endex

        //ifex _Marble_Enabled==0
        [HideInInspector] m_start_Marble("Marble", Float) = 0
          [ThryToggle(_MARBLE)] _Marble_Enabled("Enable", Float) = 0
          [Gradient] _Marble_U_Ramp("U Ramp", 2D) = "white" {}
          [Gradient] _Marble_V_Ramp("V Ramp", 2D) = "white" {}
          [Gradient] _Marble_W_Ramp("W Ramp", 2D) = "white" {}
          _Marble_Scale("Scale", Vector) = (1, 1, 1, 0)
          _Marble_Strength("Strength", Float) = 1
          _Marble_Octaves("Octaves", Range(1, 10)) = 3
        [HideInInspector] m_end_Marble("Marble", Float) = 0
        //endex

        //ifex _Impostors_Enabled==0
        [HideInInspector] m_start_Impostors("Impostors", Float) = 0
          [ThryToggle(_IMPOSTORS)] _Impostors_Enabled("Enable", Float) = 0
          _Impostors_Atlas("Atlas", 2D) = "white" {}
          _Impostors_Normal_Atlas("Normal Atlas", 2D) = "bump" {}
          _Impostors_Metallic_Gloss_Depth_Atlas("Metallic Gloss Depth Atlas", 2D) = "white" {}
          _Impostors_Grid_Resolution("Grid Resolution", Int) = 5
          _Impostors_Sphere_Radius("Sphere Radius", Float) = 1.0
          _Impostors_Near_Clip("Near clip distance", Float) = 0.01
          _Impostors_Far_Clip("Far clip distance", Float) = 1.0
          _Impostors_Cutoff("Alpha Cutoff", Range(0, 1)) = 0.5
          _Impostors_Parallax("Parallax Strength", Range(0, 1)) = 1

          [ThryToggle(_IMPOSTORS_DEPTH)] _Impostors_Depth_Enabled("Enable depth", Float) = 0

          [Toggle] _Impostors_Debug_Mode("Debug Mode", Float) = 0
          [Toggle] _Impostors_Debug_Depth("Debug Depth", Float) = 0
        [HideInInspector] m_end_Impostors("Impostors", Float) = 0
        //endex

      [HideInInspector] m_end_Gimmicks("Gimmicks", Float) = 0

      //ifex _Tessellation_Enabled==0
      [HideInInspector] m_start_Tessellation("Tessellation", Float) = 0
        [ThryToggle(_TESSELLATION)] _Tessellation_Enabled("Enable", Float) = 0
        _Tessellation_Factor("Factor", Range(1, 64)) = 1
        _Tessellation_Frustum_Culling_Bias("Frustum culling bias", Float) = 35
        _Tessellation_Falloff_Factor("Falloff factor", Float) = 0.05
        // Shit for thry
        [HideInInspector] Tessellation_Enabled("Enabled", Float) = 1
        [HideInInspector] Tessellation_EnabledForwardBase("Enabled (ForwardBase)", Float) = 1
        [HideInInspector] Tessellation_EnabledForwardAdd("Enabled (ForwardAdd)", Float) = 1
        [HideInInspector] Tessellation_EnabledShadowCaster("Enabled (ShadowCaster)", Float) = 1
      [HideInInspector] m_end_Tessellation("Tessellation", Float) = 0
      //endex

      [HideInInspector] m_start_Rendering_Options("Rendering Options", Float) = 0

      [HideInInspector] m_start_Debug_Views("Debug Views", Float) = 0
        [ThryToggle(_DEBUG_VIEW_UNLIT)] _Debug_View_Unlit("Unlit", Float) = 0
        [ThryToggle(_DEBUG_VIEW_WORLD_SPACE_NORMALS)] _Debug_View_World_Space_Normals("World space normals", Float) = 0
        [ThryToggle(_DEBUG_VIEW_OBJECT_SPACE_NORMALS)] _Debug_View_Object_Space_Normals("Object space normals", Float) = 0
        [ThryToggle(_DEBUG_VIEW_METALLIC_GLOSS)] _Debug_View_Metallic_Gloss("Metallic gloss", Float) = 0
        [ThryToggle(_DEBUG_VIEW_DEPTH)] _Debug_View_Depth("Depth", Float) = 0
      [HideInInspector] m_end_Debug_Views("Debug Views", Float) = 0

      [DoNotAnimate][HideInInspector] Instancing ("Instancing", Float) = 0
      //ifex Instancing==0
      [HideInInspector] m_start_Instancing("Instancing", Float) = 0
        //ifex _Instance_Distance_Culling_Enabled==0
        [HideInInspector] m_start_Instance_Distance_Culling("Distance Culling", Float) = 0
          [ThryToggle(_INSTANCE_DISTANCE_CULLING)] _Instance_Distance_Culling_Enabled("Enable", Float) = 0
          _Instance_Distance_Culling_Min_Distance("Min distance (m)", Float) = 0
          _Instance_Distance_Culling_Max_Distance("Max distance (m)", Float) = 10
        [HideInInspector] m_end_Instance_Distance_Culling("Instance Distance Culling", Float) = 0
        //endex
        //ifex _Instance_Texture_Offset_Enabled==0
        [HideInInspector] m_start_Instance_Texture_Offset("Texture Offset", Float) = 0
          [ThryToggle(_INSTANCE_TEXTURE_OFFSET)] _Instance_Texture_Offset_Enabled("Enable", Float) = 0
          [DoNotLock] [HideInInspector] _Instance_ID("Instance ID", Float) = 0
          _Instance_Texture_Offset_Data_Tex("Instance Data Texture", 2D) = "black" {}
          _Instance_Texture_Offset_Cell_Dimensions("Cell Dimensions", Vector) = (1, 1, 1, 0)
          _Instance_Texture_Offset_Angle_Randomization("Angle Randomization", Vector) = (0, 0, 0, 0)
          _Instance_Texture_Offset_Scale_Randomization("Scale Randomization", Float) = 0
          _Instance_Texture_Offset_Base_Scale("Base Scale", Vector) = (1, 1, 1, 0)
          _Instance_Texture_Offset_Base_Rotation("Base Rotation (Quaternion)", Vector) = (0, 0, 0, 1)
        [HideInInspector] m_end_Instance_Texture_Offset("Instance Texture Offset", Float) = 0
        //endex
      [HideInInspector] m_end_Instancing("Instancing", Float) = 0
      //endex

      //ifex _Parallax_Heightmap_Enabled==0
      [HideInInspector] m_start_Parallax_Heightmap("Parallax Heightmap", Float) = 0
        [ThryToggle(_PARALLAX_HEIGHTMAP)] _Parallax_Heightmap_Enabled("Enable", Float) = 0
        _Parallax_Heightmap("Heightmap", 2D) = "gray" {}
        _Parallax_Heightmap_Scale("Scale", Float) = 1
        _Parallax_Heightmap_Bias("Neutral point", Float) = 0.5

        //ifex _Parallax_Heightmap_Ray_Marching_Enabled==0
        [HideInInspector] m_start_Parallax_Heightmap_Ray_Marching("Parallax Heightmap Ray Marching", Float) = 0
          [ThryToggle(_PARALLAX_HEIGHTMAP_RAY_MARCHING)] _Parallax_Heightmap_Ray_Marching_Enabled("Enable", Float) = 0
          [IntRange] _Parallax_Heightmap_Ray_Marching_Steps("Steps", Range(1, 10)) = 5
        [HideInInspector] m_end_Parallax_Heightmap_Ray_Marching("Parallax Heightmap Ray Marching", Float) = 0
        //endex
      [HideInInspector] m_end_Parallax_Heightmap("Parallax Heightmap", Float) = 0
      //endex

      //ifex _Shadow_Caster_Enabled==0
      [HideInInspector] m_start_Shadow_Caster("Shadow caster pass", Float) = 0
        [ThryToggle(_SHADOW_CASTER)] _Shadow_Caster_Enabled("Enable", Float) = 1
      [HideInInspector] m_end_Shadow_Caster("Shadow caster pass", Float) = 0
      //endex

      [HideInInspector] m_start_BRDF("BRDF", Float) = 0
        _DFG_LUT("DFG LUT", 2D) = "white" {}
        _BRDF_Specular_Min_Denom("Specular minimum denominator", Float) = 0.000001
        _Specular_AA_Variance("Specular AA Variance", Float) = 0.15
        _Specular_AA_Threshold("Specular AA Threshold", Float) = 0.25
      [HideInInspector] m_end_BRDF("BRDF", Float) = 0

      [HideInInspector] m_start_blending ("Blending--{button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/rendering/blending},hover:Documentation}}", Float) = 0
      [DoNotAnimate][Enum(Thry.BlendOp)]_BlendOp ("RGB Blend Op", Int) = 0
      [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend ("RGB Source Blend", Int) = 1
      [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _DstBlend ("RGB Destination Blend", Int) = 0
      [DoNotAnimate][Space][ThryHeaderLabel(Additive Blending, 13)]
      [DoNotAnimate][Enum(Thry.BlendOp)]_AddBlendOp ("RGB Blend Op", Int) = 0
      [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _AddSrcBlend ("RGB Source Blend", Int) = 1
      [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _AddDstBlend ("RGB Destination Blend", Int) = 1
        [DoNotAnimate][HideInInspector] m_start_alphaBlending ("Advanced Alpha Blending", Float) = 0
        [DoNotAnimate][Enum(Thry.BlendOp)]_BlendOpAlpha ("Alpha Blend Op", Int) = 0
        [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _SrcBlendAlpha ("Alpha Source Blend", Int) = 1
        [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _DstBlendAlpha ("Alpha Destination Blend", Int) = 10
        [DoNotAnimate][Space][ThryHeaderLabel(Additive Blending, 13)]
        [DoNotAnimate][Enum(Thry.BlendOp)]_AddBlendOpAlpha ("Alpha Blend Op", Int) = 4
        [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _AddSrcBlendAlpha ("Alpha Source Blend", Int) = 0
        [DoNotAnimate][Enum(UnityEngine.Rendering.BlendMode)] _AddDstBlendAlpha ("Alpha Destination Blend", Int) = 1
        [DoNotAnimate][HideInInspector] m_end_alphaBlending ("Advanced Alpha Blending", Float) = 0
      [HideInInspector] m_end_blending ("Blending", Float) = 0

      [Enum(UnityEngine.Rendering.CullMode)] _Cull("Cull", Float) = 2
      [Enum(UnityEngine.Rendering.CompareFunction)] _ZTest("ZTest", Float) = 4
      [Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1
      [Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 0
      [Enum(Off, 0, On, 1)] _ZWrite("ZWrite", Int) = 1

      [HideInInspector] m_end_Rendering_Options("Rendering Options", Float) = 0
  }

  SubShader {
		Tags { "RenderType" = "Opaque" "Queue" = "Geometry" "VRCFallback" = "Standard" }

    Pass {
      Name "FORWARD"
      Tags { "LightMode" = "ForwardBase" }
      BlendOp [_BlendOp], [_BlendOpAlpha]
      Blend [_SrcBlend] [_DstBlend], [_SrcBlendAlpha] [_DstBlendAlpha]
      Cull [_Cull]
      ZWrite [_ZWrite]
      ZTest [_ZTest]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_fwdbase
      #pragma multi_compile_fullshadows
      #pragma multi_compile_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      //ifex _Geometry_Enabled==0
      #pragma geometry geom
      //endex
      //ifex _Tessellation_Enabled==0
      #pragma hull hull
      #pragma domain domain
      //endex
      #pragma fragment frag

      #define FORWARD_BASE_PASS

      #include "3ner.cginc"
      ENDCG
    }
    //ifex _Outlines_Enabled==0
    Pass {
      Name "OUTLINES"
      Tags { "LightMode" = "ForwardBase" }
      BlendOp [_BlendOp], [_BlendOpAlpha]
      Blend [_SrcBlend] [_DstBlend], [_SrcBlendAlpha] [_DstBlendAlpha]
      Cull Front
      ZWrite [_ZWrite]
      ZTest [_ZTest]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_fwdbase
      #pragma multi_compile_fullshadows
      #pragma multi_compile_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      //ifex _Geometry_Enabled==0
      #pragma geometry geom
      //endex
      //ifex _Tessellation_Enabled==0
      #pragma hull hull
      #pragma domain domain
      //endex
      #pragma fragment frag

      #define OUTLINES_PASS

      #include "3ner.cginc"
      ENDCG
    }
    //endex
    Pass {
      Name "ADDITIVE"
      Tags { "LightMode" = "ForwardAdd" }
      Fog { Color (0,0,0,0) }
      Cull [_Cull]
      ZWrite Off
      ZTest [_ZTest]
    BlendOp [_AddBlendOp], [_AddBlendOpAlpha]
    Blend [_AddSrcBlend] [_AddDstBlend], [_AddSrcBlendAlpha] [_AddDstBlendAlpha]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_fwdadd_fullshadows
      #pragma multi_compile_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      //ifex _Geometry_Enabled==0
      #pragma geometry geom
      //endex
      //ifex _Tessellation_Enabled==0
      #pragma hull hull
      #pragma domain domain
      //endex
      #pragma fragment frag


      #define FORWARD_ADD_PASS

      #include "3ner.cginc"
      ENDCG
    }
    Pass {
      Name "SHADOW"
      Tags { "LightMode" = "ShadowCaster" }
      Fog { Color (0,0,0,0) }
      Cull [_Cull]
      ZTest [_ZTest]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_instancing
      #pragma multi_compile_shadowcaster
      #pragma vertex vert
      //ifex _Geometry_Enabled==0
      #pragma geometry geom
      //endex
      //ifex _Tessellation_Enabled==0
      #pragma hull hull
      #pragma domain domain
      //endex
      #pragma fragment frag

      #define SHADOW_CASTER_PASS

      #include "3ner.cginc"
      ENDCG
    }
  }
  CustomEditor "Thry.ShaderEditor"
}