blob: 88f8809cf7a9be1b744622119736de440ae951b9 (
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
|
#ifndef __GLOBALS_INC
#define __GLOBALS_INC
#include "features.cginc"
SamplerState linear_repeat_s;
sampler2D _MainTex;
float4 _MainTex_ST;
fixed4 _Color;
sampler2D _BumpMap;
float4 _BumpMap_ST;
half _BumpScale;
float _BumpShadowHeightScale;
float _BumpShadowHardness;
#if defined(_ALPHA_MULTIPLIER)
float _Alpha_Multiplier;
#endif
#if defined(_EMISSION)
sampler2D _EmissionMap;
float4 _EmissionMap_ST;
float3 _EmissionColor;
#endif
#if defined(_AMBIENT_OCCLUSION)
sampler2D _OcclusionMap;
float _OcclusionStrength;
#endif
float _Shadow_Strength;
#if defined(_WRAPPED_LIGHTING)
float _Wrap_NoL_Diffuse_Strength;
float _Wrap_NoL_Specular_Strength;
#endif
#if defined(_MIN_BRIGHTNESS)
float _Min_Brightness;
#endif
#if defined(_QUANTIZE_NOL)
float _Quantize_NoL_Steps;
#endif
#if defined(_QUANTIZE_SPECULAR)
float _Quantize_Specular_Steps;
#endif
#if defined(_QUANTIZE_DIFFUSE)
float _Quantize_Diffuse_Steps;
#endif
float _Clip;
int _Mode;
float _Spherical_Harmonics;
float _reflectance;
float _specularAntiAliasingVariance;
float _specularAntiAliasingThreshold;
#if defined(_METALLICS)
float _Smoothness;
float _Metallic;
sampler2D _MetallicGlossMap;
float4 _MetallicGlossMap_ST;
#endif
#if defined(OUTLINE_PASS)
float4 _Outline_Color;
float _Outline_Width;
#if defined(_OUTLINE_MASK)
texture2D _Outline_Mask;
#endif
#endif
#define MATCAP_MODE_REPLACE 0
#define MATCAP_MODE_ADD 1
#define MATCAP_MODE_MULTIPLY 2
#define MATCAP_MODE_SUBTRACT 3
#define MATCAP_MODE_ADD_PRODUCT 4
#if defined(_MATCAP0)
texture2D _Matcap0;
uint _Matcap0_Mode;
float _Matcap0_Invert;
float _Matcap0_Strength;
#if defined(_MATCAP0_MASK)
texture2D _Matcap0_Mask;
#endif
#if defined(_MATCAP0_QUANTIZATION)
float _Matcap0_Quantization_Steps;
#endif
#endif
#if defined(_RIM_LIGHTING0)
uint _Rim_Lighting0_Mode;
float _Rim_Lighting0_Center;
float _Rim_Lighting0_Power;
float3 _Rim_Lighting0_Color;
float _Rim_Lighting0_Brightness;
#if defined(_RIM_LIGHTING0_MASK)
texture2D _Rim_Lighting0_Mask;
#endif
#if defined(_RIM_LIGHTING0_ANGLE_LIMIT)
float2 _Rim_Lighting0_Angle_Limit_Target_Vector;
float _Rim_Lighting0_Angle_Limit_Power;
#endif
#if defined(_RIM_LIGHTING0_QUANTIZATION)
float _Rim_Lighting0_Quantization_Steps;
#endif
#endif
#if defined(_RIM_LIGHTING1)
uint _Rim_Lighting1_Mode;
float _Rim_Lighting1_Center;
float _Rim_Lighting1_Power;
float3 _Rim_Lighting1_Color;
float _Rim_Lighting1_Brightness;
#if defined(_RIM_LIGHTING1_MASK)
texture2D _Rim_Lighting1_Mask;
#endif
#if defined(_RIM_LIGHTING1_ANGLE_LIMIT)
float2 _Rim_Lighting1_Angle_Limit_Target_Vector;
float _Rim_Lighting1_Angle_Limit_Power;
#endif
#if defined(_RIM_LIGHTING1_QUANTIZATION)
float _Rim_Lighting1_Quantization_Steps;
#endif
#endif
#if defined(_RIM_LIGHTING2)
uint _Rim_Lighting2_Mode;
float _Rim_Lighting2_Center;
float _Rim_Lighting2_Power;
float3 _Rim_Lighting2_Color;
float _Rim_Lighting2_Brightness;
#if defined(_RIM_LIGHTING2_MASK)
texture2D _Rim_Lighting2_Mask;
#endif
#if defined(_RIM_LIGHTING2_ANGLE_LIMIT)
float2 _Rim_Lighting2_Angle_Limit_Target_Vector;
float _Rim_Lighting2_Angle_Limit_Power;
#endif
#if defined(_RIM_LIGHTING2_QUANTIZATION)
float _Rim_Lighting2_Quantization_Steps;
#endif
#endif
#if defined(_RIM_LIGHTING3)
uint _Rim_Lighting3_Mode;
float _Rim_Lighting3_Center;
float _Rim_Lighting3_Power;
float3 _Rim_Lighting3_Color;
float _Rim_Lighting3_Brightness;
#if defined(_RIM_LIGHTING3_MASK)
texture2D _Rim_Lighting3_Mask;
#endif
#if defined(_RIM_LIGHTING3_ANGLE_LIMIT)
float2 _Rim_Lighting3_Angle_Limit_Target_Vector;
float _Rim_Lighting3_Angle_Limit_Power;
#endif
#if defined(_RIM_LIGHTING3_QUANTIZATION)
float _Rim_Lighting3_Quantization_Steps;
#endif
#endif
#if defined(_VERTEX_DOMAIN_WARPING)
float _Vertex_Domain_Warping_Spatial_Strength;
float _Vertex_Domain_Warping_Spatial_Scale;
float _Vertex_Domain_Warping_Spatial_Octaves;
float _Vertex_Domain_Warping_Speed;
float _Vertex_Domain_Warping_Temporal_Strength;
#endif // _VERTEX_DOMAIN_WARPING
#if defined(_UV_DOMAIN_WARPING)
float _UV_Domain_Warping_Spatial_Strength;
float _UV_Domain_Warping_Spatial_Scale;
float _UV_Domain_Warping_Spatial_Octaves;
#endif
#if defined(_EYE_EFFECT_00)
float _Gimmick_Eye_Effect_00_Edge_Length;
float3 _Gimmick_Eye_Effect_00_Period;
float3 _Gimmick_Eye_Effect_00_Count;
texture2D _Gimmick_Eye_Effect_00_Noise;
float _Gimmick_Eye_Effect_00_Domain_Warping_Octaves;
float _Gimmick_Eye_Effect_00_Domain_Warping_Scale;
float _Gimmick_Eye_Effect_00_Domain_Warping_Speed;
float _Gimmick_Eye_Effect_00_Domain_Warping_Strength;
#endif // _EYE_EFFECT_00
#if defined(_SSFD)
float _SSFD_Scale;
float _SSFD_Max_Fwidth;
texture3D _SSFD_Noise;
float _SSFD_Size_Factor;
float _SSFD_Threshold;
#endif // _SSFD
#if defined(_LTCGI)
float _LTCGI_Strength;
float4 _LTCGI_SpecularColor;
float4 _LTCGI_DiffuseColor;
#endif // _LTCGI
#if defined(MASKED_STENCIL_PASS)
texture2D _Masked_Stencil_Mask;
float _Masked_Stencil_Ref;
float _Masked_Stencil_Read_Mask;
float _Masked_Stencil_Write_Mask;
float _Masked_Stencil_Compare_Function;
float _Masked_Stencil_Pass_Op;
float _Masked_Stencil_Fail_Op;
float _Masked_Stencil_Z_Fail_Op;
#endif // MASKED_STENCIL_PASS
#if defined(EXTRA_STENCIL_COLOR_PASS)
float4 _ExtraStencilColor;
#endif // EXTRA_STENCIL_COLOR_PASS
#endif // __GLOBALS_INC
|