Standard.cs
2.21 KB
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
using System.Collections.Generic;
namespace UniGLTF.ShaderPropExporter
{
public static partial class PreShaderPropExporter
{
[PreExportShader]
static KeyValuePair<string, ShaderProps> Standard
{
get
{
return new KeyValuePair<string, ShaderProps>(
"Standard",
new ShaderProps
{
Properties = new ShaderProperty[]{
new ShaderProperty("_Color", ShaderPropertyType.Color)
,new ShaderProperty("_MainTex", ShaderPropertyType.TexEnv)
,new ShaderProperty("_Cutoff", ShaderPropertyType.Range)
,new ShaderProperty("_Glossiness", ShaderPropertyType.Range)
,new ShaderProperty("_GlossMapScale", ShaderPropertyType.Range)
,new ShaderProperty("_SmoothnessTextureChannel", ShaderPropertyType.Float)
,new ShaderProperty("_Metallic", ShaderPropertyType.Range)
,new ShaderProperty("_MetallicGlossMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_SpecularHighlights", ShaderPropertyType.Float)
,new ShaderProperty("_GlossyReflections", ShaderPropertyType.Float)
,new ShaderProperty("_BumpScale", ShaderPropertyType.Float)
,new ShaderProperty("_BumpMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_Parallax", ShaderPropertyType.Range)
,new ShaderProperty("_ParallaxMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_OcclusionStrength", ShaderPropertyType.Range)
,new ShaderProperty("_OcclusionMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_EmissionColor", ShaderPropertyType.Color)
,new ShaderProperty("_EmissionMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_DetailMask", ShaderPropertyType.TexEnv)
,new ShaderProperty("_DetailAlbedoMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_DetailNormalMapScale", ShaderPropertyType.Float)
,new ShaderProperty("_DetailNormalMap", ShaderPropertyType.TexEnv)
,new ShaderProperty("_UVSec", ShaderPropertyType.Float)
,new ShaderProperty("_Mode", ShaderPropertyType.Float)
,new ShaderProperty("_SrcBlend", ShaderPropertyType.Float)
,new ShaderProperty("_DstBlend", ShaderPropertyType.Float)
,new ShaderProperty("_ZWrite", ShaderPropertyType.Float)
}
}
);
}
}
}
}