blob: fd865dc34f93b9a4f56e79fdd617cd9934bc93d6 (
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
|
#ifndef __GLOBALS_INC
#define __GLOBALS_INC
#include "features.cginc"
SamplerState point_repeat_s;
SamplerState linear_repeat_s;
SamplerState aniso16_trilinear_repeat_s;
SamplerState bilinear_repeat_s;
SamplerState linear_clamp_s;
SamplerState bilinear_clamp_s;
SamplerState trilinear_repeat_s;
int _Mode; // opaque, cutout, transparent, etc.
texture2D _MainTex;
float4 _MainTex_ST;
float4 _Color;
texture2D _BumpMap;
float4 _BumpMap_ST;
float _BumpScale;
texture2D _MetallicGlossMap;
float4 _MetallicGlossMap_ST;
float _Glossiness;
float _Metallic;
texture2D _DFG_LUT;
float _Specular_AA_Variance;
float _Specular_AA_Threshold;
float _BRDF_Specular_Min_Denom;
#if defined(_MARBLE)
texture2D _Marble_U_Ramp;
texture2D _Marble_V_Ramp;
texture2D _Marble_W_Ramp;
float3 _Marble_Scale;
float _Marble_Octaves;
float _Marble_Strength;
#endif // _MARBLE
#if defined(_TESSELLATION)
float _Tessellation_Factor;
float _Tessellation_Frustum_Culling_Bias;
float _Tessellation_Falloff_Factor;
#endif // _TESSELLATION
#if defined(_CLEARCOAT)
float _Clearcoat_Strength;
float _Clearcoat_Roughness;
#endif // _CLEARCOAT
#if defined(_CLOTH_SHEEN)
float _Cloth_Sheen_Strength;
float3 _Cloth_Sheen_Color;
texture2D _Cloth_Sheen_DFG_LUT;
#endif // _CLOTH_SHEEN
#if defined(_VERTEX_DEFORMATION_XY_TUBE)
float _Vertex_Deformation_XY_Tube_t;
#endif // _VERTEX_DEFORMATION_XY_TUBE
#if defined(_VERTEX_DEFORMATION_XZ_TUBE)
float _Vertex_Deformation_XZ_Tube_t;
#endif // _VERTEX_DEFORMATION_XZ_TUBE
#if defined(_VERTEX_DEFORMATION_YZ_TUBE)
float _Vertex_Deformation_YZ_Tube_t;
#endif // _VERTEX_DEFORMATION_YZ_TUBE
#if defined(_VERTEX_DEFORMATION_SEAL)
float _Vertex_Deformation_Seal_A;
float _Vertex_Deformation_Seal_k;
float _Vertex_Deformation_Seal_t;
#endif // _VERTEX_DEFORMATION_SEAL
#if defined(_VERTEX_DEFORMATION_SINE_WAVES)
float3 _Vertex_Deformation_Sine_Waves_Amplitude;
float3 _Vertex_Deformation_Sine_Waves_Direction;
float3 _Vertex_Deformation_Sine_Waves_k;
float3 _Vertex_Deformation_Sine_Waves_omega;
#endif // _VERTEX_DEFORMATION_SINE_WAVES
#if defined(_VERTEX_DEFORMATION_FBM)
float3 _Vertex_Deformation_FBM_Velocity;
float _Vertex_Deformation_FBM_Amplitude;
float _Vertex_Deformation_FBM_Gain;
float _Vertex_Deformation_FBM_Lacunarity;
float _Vertex_Deformation_FBM_Scale;
float _Vertex_Deformation_FBM_Octaves;
#endif // _VERTEX_DEFORMATION_FBM
#if defined(_UV_SCROLL)
float2 _UV_Scroll_Speed;
#endif // _UV_SCROLL
#if defined(_CENTER_OFFSET)
texture2D _Center_Offset_Heightmap;
float4 _Center_Offset_Heightmap_ST;
float _Center_Offset_Factor;
#endif // _CENTER_OFFSET
#endif // __GLOBALS_INC
|