forked from autodesk-forks/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstandard_surface_brick_procedural.mtlx
140 lines (140 loc) · 7.52 KB
/
standard_surface_brick_procedural.mtlx
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
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709" fileprefix="../../../Images/">
<nodedef name="ND_BrickShader" node="BrickShader">
<input name="brick_color" type="color3" value="0.661876, 0.19088, 0" />
<input name="hue_variation" type="float" value="0.083" uimin="0" uimax="1" />
<input name="value_variation" type="float" value="0.787" uimin="0" uimax="1" />
<input name="roughness_amount" type="float" value="0.853" uimin="0" uimax="1" />
<input name="dirt_color" type="color3" value="0.56372, 0.56372, 0.56372" />
<input name="dirt_amount" type="float" value="0.248" uimin="0" uimax="1" />
<input name="uvtiling" type="vector2" value="3, 3" uimin="0, 0" uimax="25, 25" />
<output name="base_color_output" type="color3" value="0, 0, 0" />
<output name="specular_roughness_output" type="float" value="0" />
<output name="normal_output" type="vector3" value="0, 0, 0" />
</nodedef>
<nodegraph name="NG_BrickShader" nodedef="ND_BrickShader">
<multiply name="node_multiply_5" type="color3">
<input name="in1" type="color3" nodename="node_mix_6" />
<input name="in2" type="float" nodename="node_tiledimage_float_7" />
</multiply>
<mix name="node_mix_8" type="color3">
<input name="fg" type="color3" nodename="node_multiply_5" />
<input name="bg" type="color3" nodename="node_multiply_9" />
<input name="mix" type="float" nodename="node_tiledimage_float_10" />
</mix>
<constant name="node_color_11" type="color3">
<input name="value" type="color3" value="0.263273, 0.263273, 0.263273" />
</constant>
<multiply name="node_multiply_9" type="color3">
<input name="in1" type="color3" nodename="node_color_11" />
<input name="in2" type="float" nodename="node_tiledimage_float_7" />
</multiply>
<rgbtohsv name="node_rgbtohsv_12" type="color3">
<input name="in" type="color3" interfacename="brick_color" />
</rgbtohsv>
<combine3 name="node_combine3_color3_13" type="color3">
<input name="in1" type="float" nodename="node_multiply_14" />
<input name="in2" type="float" value="0" />
<input name="in3" type="float" nodename="node_multiply_15" />
</combine3>
<add name="node_add_16" type="color3">
<input name="in1" type="color3" nodename="node_combine3_color3_13" />
<input name="in2" type="color3" nodename="node_rgbtohsv_12" />
</add>
<hsvtorgb name="node_hsvtorgb_17" type="color3">
<input name="in" type="color3" nodename="node_add_16" />
</hsvtorgb>
<subtract name="node_subtract_18" type="float">
<input name="in1" type="float" nodename="node_add_19" />
<input name="in2" type="float" value="0.35" />
</subtract>
<multiply name="node_multiply_14" type="float">
<input name="in1" type="float" nodename="node_subtract_18" />
<input name="in2" type="float" interfacename="hue_variation" />
</multiply>
<multiply name="node_multiply_15" type="float">
<input name="in1" type="float" nodename="node_add_19" />
<input name="in2" type="float" nodename="node_multiply_20" />
</multiply>
<clamp name="node_clamp_0" type="color3">
<input name="in" type="color3" nodename="node_mix_8" />
</clamp>
<multiply name="node_multiply_1" type="float">
<input name="in1" type="float" nodename="node_divide_21" />
<input name="in2" type="float" nodename="node_tiledimage_float_22" />
</multiply>
<divide name="node_divide_21" type="float">
<input name="in1" type="float" interfacename="roughness_amount" />
<input name="in2" type="float" nodename="node_tiledimage_float_10" />
</divide>
<mix name="node_mix_6" type="color3">
<input name="fg" type="color3" interfacename="dirt_color" />
<input name="bg" type="color3" nodename="node_hsvtorgb_17" />
<input name="mix" type="float" nodename="node_multiply_23" />
</mix>
<multiply name="node_multiply_23" type="float">
<input name="in1" type="float" interfacename="dirt_amount" />
<input name="in2" type="float" nodename="node_tiledimage_float_24" />
</multiply>
<multiply name="node_multiply_25" type="float">
<input name="in1" type="float" interfacename="hue_variation" />
<input name="in2" type="float" nodename="node_tiledimage_float_26" />
</multiply>
<add name="node_add_19" type="float">
<input name="in1" type="float" nodename="node_multiply_25" />
<input name="in2" type="float" nodename="node_tiledimage_float_7" />
</add>
<multiply name="node_multiply_20" type="float">
<input name="in1" type="float" interfacename="value_variation" />
<input name="in2" type="float" nodename="node_tiledimage_float_26" />
</multiply>
<normalmap name="node_normalmap_3" type="vector3">
<input name="in" type="vector3" nodename="node_tiledimage_vector3_27" />
<input name="scale" type="float" value="1" />
</normalmap>
<tiledimage name="node_tiledimage_vector3_27" type="vector3">
<input name="file" type="filename" value="brick_normal.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<tiledimage name="node_tiledimage_float_22" type="float">
<input name="file" type="filename" value="brick_roughness.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<tiledimage name="node_tiledimage_float_10" type="float">
<input name="file" type="filename" value="brick_mask.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<tiledimage name="node_tiledimage_float_7" type="float">
<input name="file" type="filename" value="brick_base_gray.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<tiledimage name="node_tiledimage_float_26" type="float">
<input name="file" type="filename" value="brick_variation_mask.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<tiledimage name="node_tiledimage_float_24" type="float">
<input name="file" type="filename" value="brick_dirt_mask.jpg" />
<input name="uvtiling" type="vector2" interfacename="uvtiling" />
</tiledimage>
<output name="base_color_output" type="color3" nodename="node_clamp_0" />
<output name="specular_roughness_output" type="float" nodename="node_multiply_1" />
<output name="normal_output" type="vector3" nodename="node_normalmap_3" />
</nodegraph>
<BrickShader name="N_BrickShader" type="multioutput">
<input name="brick_color" type="color3" value="0.661876, 0.19088, 0" />
<input name="hue_variation" type="float" value="0.083" />
<input name="value_variation" type="float" value="0.787" />
<input name="roughness_amount" type="float" value="0.853" />
<input name="dirt_color" type="color3" value="0.56372, 0.56372, 0.56372" />
<input name="dirt_amount" type="float" value="0.248" />
<input name="uvtiling" type="vector2" value="3, 3" />
</BrickShader>
<standard_surface name="N_StandardSurface" type="surfaceshader">
<input name="base_color" type="color3" nodename="N_BrickShader" output="base_color_output" />
<input name="specular_roughness" type="float" nodename="N_BrickShader" output="specular_roughness_output" />
<input name="normal" type="vector3" nodename="N_BrickShader" output="normal_output" />
</standard_surface>
<surfacematerial name="M_BrickProcedural" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="N_StandardSurface" />
</surfacematerial>
</materialx>