summaryrefslogtreecommitdiffstats
path: root/2ner.shader
blob: 2ae477cd75a59a44c437064c96222f071829b011 (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
Shader "yum_food/2ner"
{
	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

      // TODO these are buggy
      // [HideInInspector] footer_youtube ("", Float) = 0
      // [HideInInspector] footer_github ("", Float) = 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_mainOptions("Main", Float) = 0
      _Color("Tint", Color) = (1, 1, 1, 1)
      _MainTex("Base color", 2D) = "white" {}
      [PanningTexture][Normal]_BumpMap("Normals", 2D) = "bump" {}
      _BumpScale("Normal Intensity", Range(0, 10)) = 1
      _Clip("Alpha Cuttoff", Range(0, 1.001)) = 0.5
        //ifex _Emission_Enabled==0
        [HideInInspector] m_start_Emission("Emission", Float) = 0
          [ThryToggle(_EMISSION)]_Emission_Enabled("Enable", Float) = 0
          _EmissionColor("Color", Color) = (1, 1, 1, 1)
          _EmissionMap("Emission", 2D) = "white" {}
          [HideInInspector] m_end_Emission("Emission", Float) = 0
        //endex

        //ifex _Ambient_Occlusion_Enabled==0
        [HideInInspector] m_start_AO("Ambient occlusion", Float) = 0
        [ThryToggle(_AMBIENT_OCCLUSION)]_Ambient_Occlusion_Enabled("Enable", Float) = 0
        _OcclusionMap("Ambient occlusion", 2D) = "white" {}
        _OcclusionStrength("Ambient occlusion", Range(0,1)) = 1
        [HideInInspector] m_end_AO("Metallics", Float) = 0
        //endex

      //ifex _Metallics_Enabled==0
      [HideInInspector] m_reflectionOptions("Reflections", Float) = 0
      [HideInInspector] m_start_Metallic("Metallics", Float) = 0
        [ThryToggle(_METALLICS)]_Metallics_Enabled("Enable", Float) = 0
        _MetallicMask("Metallic Mask", 2D) = "white" {}
        _Metallic("Metallic", Range(0, 1)) = 0
        _Smoothness("Smoothness", Range(0, 1)) = 0
        _MetallicGlossMap("Metallic gloss map", 2D) = "white" {}
      [HideInInspector] m_end_Metallic("Metallics", Float) = 0
      //endex

      [HideInInspector] m_gimmicks("Gimmicks", Float) = 0
        //ifex _Outlines_Enabled==0
        [HideInInspector] m_start_Outlines("Outlines", Float) = 0
        [ThryToggle(_OUTLINES)]_Outlines_Enabled("Enable", Float) = 0
        _Outline_Color("Color", Color) = (0, 0, 0, 1)
        _Outline_Width("Width", Float) = 0.01
          [HideInInspector] m_start_OutlinesMask("Mask", Float) = 0
          [ThryToggle(_OUTLINE_MASK)]_Outline_Mask_Enabled("Enable", Float) = 0
          _Outline_Mask("Thickness mask", 2D) = "white" {}
          [HideInInspector] m_end_OutlinesMask("Mask", Float) = 0
        [HideInInspector] m_end_Outlines("Outlines", Float) = 0
        //endex

        //ifex _Matcap0_Enabled==0
        [HideInInspector] m_start_Matcaps("Matcaps", Float) = 0
          [HideInInspector] m_start_Matcap0("Matcap 0", Float) = 0
          [ThryToggle(_MATCAP0)]_Matcap0_Enabled("Enable", Float) = 0
          _Matcap0("Matcap", 2D) = "white" {}
          [Toggle(_)]_Matcap0_Invert("Invert", Float) = 0
          [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, AddProduct, 4)]
          _Matcap0_Mode("Mode", Int) = 0
          _Matcap0_Strength("Strength", Float) = 1
            //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
            //ifex _Matcap0_Quantization_Enabled==0
            [HideInInspector] m_start_Matcap0_Quantization("Quantization", Float) = 0
            [ThryToggle(_MATCAP0_QUANTIZATION)]_Matcap0_Quantization_Enabled("Enable", Float) = 0
            _Matcap0_Quantization_Steps("Steps", Float) = 1
            [HideInInspector] m_end_Matcap0_Quantization("Quantization", Float) = 0
            //endex
          [HideInInspector] m_end_Matcap0("Matcaps", Float) = 0
        [HideInInspector] m_end_Matcaps("Matcaps", Float) = 0
        //endex

        [HideInInspector] m_start_Rim_Lighting("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_Center("Center", Range(0, 0.5)) = 0.5
          _Rim_Lighting0_Power("Power", Float) = 5
          _Rim_Lighting0_Color("Color", Color) = (1, 1, 1, 1)
          _Rim_Lighting0_Brightness("Brightness", Float) = 1
          [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, AddProduct, 4)]
          _Rim_Lighting0_Mode("Mode", Int) = 0
            //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
            //ifex _Rim_Lighting0_Angle_Limit_Enabled==0
            [HideInInspector] m_start_Rim_Lighting0_Angle_Limit("Angle limit", Float) = 0
            [ThryToggle(_RIM_LIGHTING0_ANGLE_LIMIT)]_Rim_Lighting0_Angle_Limit_Enabled("Enable", Float) = 0
            _Rim_Lighting0_Angle_Limit_Target_Vector("Target vector", Vector) = (0, -1, 0, 0)
            _Rim_Lighting0_Angle_Limit_Power("Power", Float) = 1
            [HideInInspector] m_end_Rim_Lighting0_Angle_Limit("Angle limit", Float) = 0
            //endex
            //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
            _Rim_Lighting0_Quantization_Steps("Steps", Float) = 1
            [HideInInspector] m_end_Rim_Lighting0_Quantization("Quantization", Float) = 0
            //endex
          [HideInInspector] m_end_Rim_Lighting0("Rim lighting", Float) = 0
          //endex

          //ifex _Rim_Lighting1_Enabled==0
          [HideInInspector] m_start_Rim_Lighting1("Rim lighting 1", Float) = 0
          [ThryToggle(_RIM_LIGHTING1)]_Rim_Lighting1_Enabled("Enable", Float) = 0
          _Rim_Lighting1_Center("Center", Range(0, 0.5)) = 0.5
          _Rim_Lighting1_Power("Power", Float) = 5
          _Rim_Lighting1_Color("Color", Color) = (1, 1, 1, 1)
          _Rim_Lighting1_Brightness("Brightness", Float) = 1
          [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, AddProduct, 4)]
          _Rim_Lighting1_Mode("Mode", Int) = 0
            //ifex _Rim_Lighting1_Mask_Enabled==0
            [HideInInspector] m_start_Rim_Lighting1_Mask("Mask", Float) = 0
            [ThryToggle(_RIM_LIGHTINg1_MASK)]_Rim_Lighting1_Mask_Enabled("Enable", Float) = 0
            _Rim_Lighting1_Mask("Mask", 2D) = "white" {}
            [HideInInspector] m_end_Rim_Lighting1_Mask("Mask", Float) = 0
            //endex
            //ifex _Rim_Lighting1_Angle_Limit_Enabled==0
            [HideInInspector] m_start_Rim_Lighting1_Angle_Limit("Angle limit", Float) = 0
            [ThryToggle(_RIM_LIGHTING1_ANGLE_LIMIT)]_Rim_Lighting1_Angle_Limit_Enabled("Enable", Float) = 0
            _Rim_Lighting1_Angle_Limit_Target_Vector("Target vector", Vector) = (0, -1, 0, 0)
            _Rim_Lighting1_Angle_Limit_Power("Power", Float) = 1
            [HideInInspector] m_end_Rim_Lighting1_Angle_Limit("Angle limit", Float) = 0
            //endex
            //ifex _Rim_Lighting1_Quantization_Enabled==0
            [HideInInspector] m_start_Rim_Lighting1_Quantization("Quantization", Float) = 0
            [ThryToggle(_RIM_LIGHTING1_QUANTIZATION)]_Rim_Lighting1_Quantization_Enabled("Enable", Float) = 0
            _Rim_Lighting1_Quantization_Steps("Steps", Float) = 1
            [HideInInspector] m_end_Rim_Lighting1_Quantization("Quantization", Float) = 0
            //endex
          [HideInInspector] m_end_Rim_Lighting1("Rim lighting", Float) = 0
          //endex

          //ifex _Rim_Lighting2_Enabled==0
          [HideInInspector] m_start_Rim_Lighting2("Rim lighting 2", Float) = 0
          [ThryToggle(_RIM_LIGHTING2)]_Rim_Lighting2_Enabled("Enable", Float) = 0
          _Rim_Lighting2_Center("Center", Range(0, 0.5)) = 0.5
          _Rim_Lighting2_Power("Power", Float) = 5
          _Rim_Lighting2_Color("Color", Color) = (1, 1, 1, 1)
          _Rim_Lighting2_Brightness("Brightness", Float) = 1
          [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, AddProduct, 4)]
          _Rim_Lighting2_Mode("Mode", Int) = 0
            //ifex _Rim_Lighting2_Mask_Enabled==0
            [HideInInspector] m_start_Rim_Lighting2_Mask("Mask", Float) = 0
            [ThryToggle(_RIM_LIGHTING2_MASK)]_Rim_Lighting2_Mask_Enabled("Enable", Float) = 0
            _Rim_Lighting2_Mask("Mask", 2D) = "white" {}
            [HideInInspector] m_end_Rim_Lighting2_Mask("Mask", Float) = 0
            //endex
            //ifex _Rim_Lighting2_Angle_Limit_Enabled==0
            [HideInInspector] m_start_Rim_Lighting2_Angle_Limit("Angle limit", Float) = 0
            [ThryToggle(_RIM_LIGHTING2_ANGLE_LIMIT)]_Rim_Lighting2_Angle_Limit_Enabled("Enable", Float) = 0
            _Rim_Lighting2_Angle_Limit_Target_Vector("Target vector", Vector) = (0, -1, 0, 0)
            _Rim_Lighting2_Angle_Limit_Power("Power", Float) = 1
            [HideInInspector] m_end_Rim_Lighting2_Angle_Limit("Angle limit", Float) = 0
            //endex
            //ifex _Rim_Lighting2_Quantization_Enabled==0
            [HideInInspector] m_start_Rim_Lighting2_Quantization("Quantization", Float) = 0
            [ThryToggle(_RIM_LIGHTING2_QUANTIZATION)]_Rim_Lighting2_Quantization_Enabled("Enable", Float) = 0
            _Rim_Lighting2_Quantization_Steps("Steps", Float) = 1
            [HideInInspector] m_end_Rim_Lighting2_Quantization("Quantization", Float) = 0
            //endex
          [HideInInspector] m_end_Rim_Lighting2("Rim lighting", Float) = 0
          //endex

          //ifex _Rim_Lighting3_Enabled==0
          [HideInInspector] m_start_Rim_Lighting3("Rim lighting 3", Float) = 0
          [ThryToggle(_RIM_LIGHTING3)]_Rim_Lighting3_Enabled("Enable", Float) = 0
          _Rim_Lighting3_Center("Center", Range(0, 0.5)) = 0.5
          _Rim_Lighting3_Power("Power", Float) = 5
          _Rim_Lighting3_Color("Color", Color) = (1, 1, 1, 1)
          _Rim_Lighting3_Brightness("Brightness", Float) = 1
          [ThryWideEnum(Replace, 0, Add, 1, Multiply, 2, Subtract, 3, AddProduct, 4)]
          _Rim_Lighting3_Mode("Mode", Int) = 0
            //ifex _Rim_Lighting3_Mask_Enabled==0
            [HideInInspector] m_start_Rim_Lighting3_Mask("Mask", Float) = 0
            [ThryToggle(_RIM_LIGHTING3_MASK)]_Rim_Lighting3_Mask_Enabled("Enable", Float) = 0
            _Rim_Lighting3_Mask("Mask", 2D) = "white" {}
            [HideInInspector] m_end_Rim_Lighting3_Mask("Mask", Float) = 0
            //endex
            //ifex _Rim_Lighting3_Angle_Limit_Enabled==0
            [HideInInspector] m_start_Rim_Lighting3_Angle_Limit("Angle limit", Float) = 0
            [ThryToggle(_RIM_LIGHTING3_ANGLE_LIMIT)]_Rim_Lighting3_Angle_Limit_Enabled("Enable", Float) = 0
            _Rim_Lighting3_Angle_Limit_Target_Vector("Target vector", Vector) = (0, -1, 0, 0)
            _Rim_Lighting3_Angle_Limit_Power("Power", Float) = 1
            [HideInInspector] m_end_Rim_Lighting3_Angle_Limit("Angle limit", Float) = 0
            //endex
            //ifex _Rim_Lighting3_Quantization_Enabled==0
            [HideInInspector] m_start_Rim_Lighting3_Quantization("Quantization", Float) = 0
            [ThryToggle(_RIM_LIGHTING3_QUANTIZATION)]_Rim_Lighting3_Quantization_Enabled("Enable", Float) = 0
            _Rim_Lighting3_Quantization_Steps("Steps", Float) = 1
            [HideInInspector] m_end_Rim_Lighting3_Quantization("Quantization", Float) = 0
            //endex
          [HideInInspector] m_end_Rim_Lighting3("Rim lighting", Float) = 0
          //endex

        [HideInInspector] m_end_Rim_Lighting("Rim lighting", Float) = 0

        //ifex _Vertex_Domain_Warping_Enabled==0
        [HideInInspector] m_start_Vertex_Domain_Warping("Vertex domain warping", Float) = 0
          [ThryToggle(_VERTEX_DOMAIN_WARPING)]_Vertex_Domain_Warping_Enabled("Enable", Float) = 0
          _Vertex_Domain_Warping_Spatial_Strength("Spatial warping strength", Float) = 0.10
          _Vertex_Domain_Warping_Spatial_Scale("Spatial warping scale", Float) = 1.0
          _Vertex_Domain_Warping_Spatial_Octaves("Spatial warping octaves", Float) = 1.0
          _Vertex_Domain_Warping_Speed("Speed", Float) = 1.0
          _Vertex_Domain_Warping_Temporal_Strength("Temporal warping strength", Float) = 0.10
          [HideInInspector] m_end_Vertex_Domain_Warping("Vertex domain warping", Float) = 0
        //endex

        //ifex _Eye_Effect_00_Enabled==0
        [HideInInspector] m_start_Eye_Effect_00("Eye effect 00", Float) = 0
          [ThryToggle(_EYE_EFFECT_00)]_Eye_Effect_00_Enabled("Enable", Float) = 0
          _Gimmick_Eye_Effect_00_Edge_Length("Edge length", Float) = 0.1
          _Gimmick_Eye_Effect_00_Period("Period", Vector) = (1.0, 1.0, 1.0)
          _Gimmick_Eye_Effect_00_Count("Count", Vector) = (1.0, 1.0, 1.0)
          _Gimmick_Eye_Effect_00_Noise("Noise", 2D) = "white" {}
          _Gimmick_Eye_Effect_00_Domain_Warping_Octaves("Domain warping octaves", Float) = 1.0
          _Gimmick_Eye_Effect_00_Domain_Warping_Scale("Domain warping scale", Float) = 1.0
          _Gimmick_Eye_Effect_00_Domain_Warping_Speed("Domain warping speed", Float) = 1.0
          _Gimmick_Eye_Effect_00_Domain_Warping_Strength("Domain warping strength", Float) = 0.1
          [HideInInspector] m_end_Eye_Effect_00("Eye effect 00", Float) = 0
        //endex

        //ifex _SSFD_Enabled==0
        [HideInInspector] m_start_SSFD("SSFD", Float) = 0
          [ThryToggle(_SSFD)] _SSFD_Enabled("Enable", Float) = 0
          _SSFD_Scale("Scale", Float) = 1.0
          _SSFD_Max_Fwidth("Max fwidth", Float) = 1.0
          _SSFD_Noise("Noise", 3D) = "black" {}
          _SSFD_Size_Factor("Size factor", Float) = 1.0
          _SSFD_Threshold("Threshold", Range(0, 1)) = 0.5
        [HideInInspector] m_end_SSFD("SSFD", Float) = 0
        //endex

      [HideInInspector] m_lightingOptions("Lighting Options", Float) = 0
        //ifex _Receive_Shadows_Enabled==0
        [HideInInspector] m_start_Shadow_Receiving("Receive shadows", Float) = 0
        [ThryToggle(_RECEIVE_SHADOWS)] _Receive_Shadows_Enabled("Enable", Float) = 1
        _Shadow_Strength("Shadow strength", Range(0, 1)) = 0.25
        [HideInInspector] m_end_Shadow_Receiving("Shadows", Float) = 0
        //endex
        //ifex _Cast_Shadows_Enabled==0
        [HideInInspector] m_start_Shadow_Casting("Cast shadows", Float) = 0
        [ThryToggle(_)] _Cast_Shadows_Enabled("Enable", Float) = 1
        [HideInInspector] m_end_Shadow_Casting("Cast shadows", Float) = 0
        //ifex _Wrapped_Lighting_Enabled==0
        [HideInInspector] m_start_WrappedLighting("Wrapped lighting", Float) = 0
        [ThryToggle(_WRAPPED_LIGHTING)] _Wrapped_Lighting_Enabled("Enable", Float) = 1
        _Wrap_NoL_Diffuse_Strength("Diffuse strength", Range(0, 1)) = 0.25
        _Wrap_NoL_Specular_Strength("Specular strength", Range(0, 1)) = 0.1
        [HideInInspector] m_end_WrappedLighting("Wrapped lighting", Float) = 0
        //endex
        //ifex _Min_Brightness_Enabled==0
        [HideInInspector] m_start_Min_Brightness("Minimum brightness", Float) = 0
        [ThryToggle(_MIN_BRIGHTNESS)] _Min_Brightness_Enabled("Enable", Float) = 0
        _Min_Brightness("Value", Range(0, 1)) = 0
        [HideInInspector] m_end_Min_Brightness("Minimum brightness", Float) = 0
        //endex
        //ifex _Quantize_NoL_Enabled==0
        [HideInInspector] m_start_Quantize_NoL("Quantize NoL", Float) = 0
          [ThryToggle(_QUANTIZE_NOL)] _Quantize_NoL_Enabled("Enable", Float) = 0
          _Quantize_NoL_Steps("Steps", Float) = 1
        [HideInInspector] m_end_Quantize_NoL("Quantize NoL", Float) = 0
        //endex
        //ifex _Quantize_Specular_Enabled==0
        [HideInInspector] m_start_Quantize_Specular("Quantize Specular", Float) = 0
          [ThryToggle(_QUANTIZE_SPECULAR)] _Quantize_Specular_Enabled("Enable", Float) = 0
          _Quantize_Specular_Steps("Steps", Float) = 1
        [HideInInspector] m_end_Quantize_Specular("Quantize Specular", Float) = 0
        //endex
        //ifex _LTCGI_Enabled==0
        [HideInInspector] m_start_LTCGI("LTCGI", Float) = 0
          [ThryToggle(_LTCGI)] _LTCGI_Enabled("Enable", Float) = 0
          _LTCGI_Strength("Strength", Range(0, 1)) = 1.0
        [HideInInspector] m_end_LTCGI("LTCGI", Float) = 0
        //endex

      [HideInInspector] m_renderingOptions("Rendering Options", 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
      [Enum(Realistic, 0, Toon, 1)] _SphericalHarmonics("Spherical harmonics", Int) = 1
      [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) = 4
      [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
      //ifex _Outlines_Enabled==0
      // Outline Blending Options
      [HideInInspector] m_start_outlineBlending ("Outline Blending", Float) = 0
      [Enum(Thry.BlendOp)]_OutlineBlendOp ("RGB Blend Op", Int) = 0
      [Enum(UnityEngine.Rendering.BlendMode)] _OutlineSrcBlend ("RGB Source Blend", Int) = 1
      [Enum(UnityEngine.Rendering.BlendMode)] _OutlineDstBlend ("RGB Destination Blend", Int) = 0
      [HideInInspector] m_start_outlineAlphaBlending ("Advanced Alpha Blending", Float) = 0
      [Enum(Thry.BlendOp)]_OutlineBlendOpAlpha ("Alpha Blend Op", Int) = 4
      [Enum(UnityEngine.Rendering.BlendMode)] _OutlineSrcBlendAlpha ("Alpha Source Blend", Int) = 1
      [Enum(UnityEngine.Rendering.BlendMode)] _OutlineDstBlendAlpha ("Alpha Destination Blend", Int) = 0
      [HideInInspector] m_end_outlineAlphaBlending ("Advanced Alpha Blending", Float) = 0
      [HideInInspector] m_end_outlineBlending ("Outline Blending", Float) = 0
      //endex

    [HideInInspector] m_FilamentStuff("Filament stuff", Float) = 0
    [NonModifiableTextureData]_DFG("DFG", 2D) = "white" {}
    [ThryWideEnum(Water, 0.02, Skin, 0.028, Eyes, 0.025, Hair, 0.046, Teeth, 0.058, Fabric, 0.05, Stone, 0.045, Plastic, 0.045, Glass, 0.06, Gemstone, 0.07, Diamond, 0.18)]_reflectance("Reflectance", Float) = 0.028
    [Helpbox]_reflectance_help("Values are documented in the filament whitepaper here https://google.github.io/filament/Filament.html#toc4.8.3.2", Float) = 1
    _specularAntiAliasingVariance("Specular AA variance", Float) = 0.15
    _specularAntiAliasingThreshold("Specular AA variance", Float) = 0.25
  }

  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_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      #pragma fragment frag

      #define FORWARD_BASE_PASS

      #include "2ner.cginc"
      ENDCG
    }
    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
      #pragma fragment frag

      #define FORWARD_ADD_PASS

      #include "2ner.cginc"
      ENDCG
    }
    //ifex _Outlines_Enabled==0
    Pass {
      Name "OUTLINES"
      Name "FORWARD"
      Tags { "LightMode" = "ForwardBase" }
      Cull Front
      ZWrite [_ZWrite]
      ZTest [_ZTest]
			BlendOp [_OutlineBlendOp], [_OutlineBlendOpAlpha]
			Blend [_OutlineSrcBlend] [_OutlineDstBlend], [_OutlineSrcBlendAlpha] [_OutlineDstBlendAlpha]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_fwdbase
      #pragma multi_compile_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      #pragma fragment frag

      #define OUTLINE_PASS

      #include "2ner.cginc"
      ENDCG
    }
    //endex
    Pass {
      Name "ShadowCaster"
      Tags { "LightMode" = "ShadowCaster" }

      ZWrite [_ZWrite]
      ZTest [_ZTest]

      CGPROGRAM
      #pragma target 5.0
      #pragma multi_compile_shadowcaster
      #pragma multi_compile_instancing
      #pragma multi_compile_fog
      #pragma vertex vert
      #pragma fragment frag

      #define SHADOW_CASTER_PASS

      #include "2ner.cginc"

      ENDCG
    }
  }
  CustomEditor "Thry.ShaderEditor"
}