forked from autodesk-forks/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstandard_surface_marble_solid.mtlx
68 lines (68 loc) · 2.92 KB
/
standard_surface_marble_solid.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
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<nodegraph name="NG_marble1">
<position name="objpos" type="vector3" />
<dotproduct name="addxyz" type="float">
<input name="in1" type="vector3" nodename="objpos" />
<input name="in2" type="vector3" value="1, 1, 1" />
</dotproduct>
<multiply name="scalexyz" type="float">
<input name="in1" type="float" nodename="addxyz" />
<input name="in2" type="float" value="6.0" />
</multiply>
<multiply name="scalepos" type="vector3">
<input name="in1" type="vector3" nodename="objpos" />
<input name="in2" type="float" value="4.0" />
</multiply>
<fractal3d name="noise" type="float">
<parameter name="octaves" type="integer" value="3" />
<input name="position" type="vector3" nodename="scalepos" />
</fractal3d>
<multiply name="scalenoise" type="float">
<input name="in1" type="float" nodename="noise" />
<input name="in2" type="float" value="3.0" />
</multiply>
<add name="sum" type="float">
<input name="in1" type="float" nodename="scalexyz" />
<input name="in2" type="float" nodename="scalenoise" />
</add>
<sin name="sin" type="float">
<input name="in" type="float" nodename="sum" />
</sin>
<multiply name="scale" type="float">
<input name="in1" type="float" nodename="sin" />
<input name="in2" type="float" value="0.5" />
</multiply>
<add name="bias" type="float">
<input name="in1" type="float" nodename="scale" />
<input name="in2" type="float" value="0.5" />
</add>
<power name="power" type="float">
<input name="in1" type="float" nodename="bias" />
<input name="in2" type="float" value="3.0" />
</power>
<constant name="constant_1" type="color3">
<input name="value" type="color3" value="0.8, 0.8, 0.8" />
</constant>
<constant name="constant_2" type="color3">
<input name="value" type="color3" value="0.1, 0.1, 0.3" />
</constant>
<mix name="mix1" type="color3">
<input name="bg" type="color3" nodename="constant_1" />
<input name="fg" type="color3" nodename="constant_2" />
<input name="mix" type="float" nodename="power" />
</mix>
<output name="out" type="color3" nodename="mix1" />
</nodegraph>
<standard_surface name="SR_marble1" type="surfaceshader">
<input name="base" type="float" value="1" />
<input name="base_color" type="color3" nodegraph="NG_marble1" output="out" />
<input name="specular_color" type="color3" value="1, 1, 1" />
<input name="specular_roughness" type="float" value="0.1" />
<input name="subsurface" type="float" value="0.4" />
<input name="subsurface_color" type="color3" nodegraph="NG_marble1" output="out" />
</standard_surface>
<surfacematerial name="Marble_3D" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_marble1" />
</surfacematerial>
</materialx>