-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaterials.xml
More file actions
67 lines (66 loc) · 3.01 KB
/
materials.xml
File metadata and controls
67 lines (66 loc) · 3.01 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8" ?>
<nodmaterials>
<textures>
<texture name="object1_diffuse" filename="object1_diffuse.png"></texture>
<texture name="monkey_ao" filename="monkey_ao.png"></texture>
<texture name="monkey_diffuse" filename="monkey_diffuse.png"></texture>
</textures>
<materials>
<material name="vivid">
<nodes>
<node type="geometry" name="geo"></node>
<node type="color" name="color1" value="color(1,0,1,1)"></node>
<node type="color" name="color2" value="color(1,1,0,1)"></node>
<node type="shading" name="shading"></node>
<node type="texture" name="diffuseMap" texture="object1_diffuse"></node>
</nodes>
<links>
<link from_node="geo" from_socket="position" to_node="shading" to_socket="ambient"></link>
<link from_node="shading" from_socket="color" to_node="material" to_socket="color"></link>
<link from_node="diffuseMap" from_socket="color" to_node="shading" to_socket="diffuse"></link>
</links>
</material>
<material name="flat_red">
<nodes>
<node type="color" name="red" value="color(1,0,0,1)"></node>
</nodes>
<links>
<link from_node="red" from_socket="value" to_node="material" to_socket="color"></link>
</links>
</material>
<material name="monkey_shaded">
<nodes>
<node type="geometry" name="geo"></node>
<node type="color" name="red" value="color(1,0,0,1)"></node>
<node type="vector4" name="const2" value="vec4(2,2,2,2)"></node>
<node type="shading" name="shading"></node>
<node type="texture" name="aoMap" texture="monkey_ao"></node>
<node type="texture" name="diffuseMap" texture="monkey_diffuse"></node>
<node type="time" name="time"></node>
<node type="math" name="math" operation="sin"></node>
</nodes>
<links>
<link from_node="shading" from_socket="color" to_node="material" to_socket="color"></link>
<link from_node="time" from_socket="time_v4" to_node="math" to_socket="arg1"></link>
<link from_node="red" from_socket="value" to_node="math" to_socket="arg2"></link>
<link from_node="math" from_socket="result" to_node="shading" to_socket="diffuse"></link>
<link from_node="aoMap" from_socket="color" to_node="shading" to_socket="ambient"></link>
<link from_node="red" from_socket="value" to_node="shading" to_socket="specular"></link>
<link from_node="geo" from_socket="texcoord0" to_node="aoMap" to_socket="coordinates"></link>
<link from_node="geo" from_socket="texcoord0" to_node="diffuseMap" to_socket="coordinates"></link>
</links>
</material>
<material name="monkey">
<nodes>
<node type="geometry" name="geo"></node>
<node type="color" name="red" value="color(1,0,0,1)"></node>
<node type="shading" name="shading"></node>
<node type="texture" name="aoMap" texture="monkey_ao"></node>
</nodes>
<links>
<link from_node="aoMap" from_socket="color" to_node="material" to_socket="color"></link>
<link from_node="geo" from_socket="texcoord0" to_node="aoMap" to_socket="coordinates"></link>
</links>
</material>
</materials>
</nodmaterials>