-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
NormalPropertyGroup.json
82 lines (82 loc) · 2.48 KB
/
NormalPropertyGroup.json
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
{
"name": "normal",
"displayName": "Normal",
"description": "Properties related to configuring surface normal.",
"properties": [
{
"name": "textureMap",
"displayName": "Texture",
"description": "Texture for defining surface normal direction.",
"type": "Image",
"connection": {
"type": "ShaderInput",
"name": "m_normalMap"
}
},
{
"name": "useTexture",
"displayName": "Use Texture",
"description": "Whether to use the texture, or just rely on vertex normals.",
"type": "Bool",
"defaultValue": true
},
{
"name": "textureMapUv",
"displayName": "UV",
"description": "Normal map UV set",
"type": "Enum",
"enumIsUv": true,
"defaultValue": "Tiled",
"connection": {
"type": "ShaderInput",
"name": "m_normalMapUvIndex"
}
},
{
"name": "flipX",
"displayName": "Flip X Channel",
"description": "Flip tangent direction for this normal map.",
"type": "Bool",
"defaultValue": false,
"connection": {
"type": "ShaderInput",
"name": "m_flipNormalX"
}
},
{
"name": "flipY",
"displayName": "Flip Y Channel",
"description": "Flip bitangent direction for this normal map.",
"type": "Bool",
"defaultValue": false,
"connection": {
"type": "ShaderInput",
"name": "m_flipNormalY"
}
},
{
"name": "factor",
"displayName": "Factor",
"description": "Strength factor for scaling the values",
"type": "Float",
"defaultValue": 1.0,
"min": 0.0,
"softMax": 2.0,
"connection": {
"type": "ShaderInput",
"name": "m_normalFactor"
}
}
],
"functors": [
{
"type": "UseTexture",
"args": {
"textureProperty": "textureMap",
"useTextureProperty": "useTexture",
"dependentProperties": ["textureMapUv", "factor", "flipX", "flipY"],
"shaderOption": "o_normal_useTexture"
}
}
]
}