-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscene.usda
153 lines (133 loc) · 3.33 KB
/
scene.usda
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
141
142
143
144
145
146
147
148
149
150
151
152
153
#usda 1.0
(
defaultPrim = "inst0"
upAxis = "Z"
)
def Xform "lights"
{
def DomeLight "DomeLight"
{
#float exposure = 10.5
asset inputs:texture:file = @./StinsonBeach.hdr@
float xformOp:rotateX:Zup = 90
uniform token[] xformOpOrder = ["xformOp:rotateX:Zup"]
}
}
def Camera "Camera"
{
double3 xformOp:translate = (-0.5, 0, 25)
float xformOp:rotateX:Zup = 90 # change to Zup
uniform token[] xformOpOrder = ["xformOp:rotateX:Zup","xformOp:translate"]
}
class Xform "ShaderBall"
{
uniform token[] xformOpOrder = ["xformOp:translate"]
def "model" (
references = @./shaderballRef.usda@
){}
}
class Xform "Cloth"
{
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
double3 xformOp:scale = (1.5, 1.5, 1.5)
def "model" (
references = @./clothRef.usda@
){}
}
def Scope "MaterialX" (
references = [
@./materials/standard_surface_brass_tiled.mtlx@</MaterialX>,
@./materials/standard_surface_metal_brushed.mtlx@</MaterialX>,
@./materials/standard_surface_marble_solid.mtlx@</MaterialX>,
@./materials/standard_surface_thin_film.mtlx@</MaterialX>,
@./materials/standard_surface_carpaint.mtlx@</MaterialX>,
@./materials/standard_surface_velvet.mtlx@</MaterialX>,
@./materials/standard_surface_chrome.mtlx@</MaterialX>,
@./materials/standard_surface_copper.mtlx@</MaterialX>,
@./materials/standard_surface_jade.mtlx@</MaterialX>,
@./materials/standard_surface_wood_tiled.mtlx@</MaterialX>,
@./materials/standard_surface_glass.mtlx@</MaterialX>,
]
)
{}
def Xform "inst0" (
inherits = </ShaderBall>
apiSchemas = ["MaterialBindingAPI"]
)
{
float3 xformOp:translate = (0, 0, 0)
rel material:binding = </MaterialX/Materials/Metal_Brushed>
}
def Xform "inst1" (
inherits = </ShaderBall>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (-2, -2, 0)
rel material:binding = </MaterialX/Materials/Tiled_Brass>
}
def Xform "inst2" (
inherits = </ShaderBall>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (-4, -4, 0)
rel material:binding = </MaterialX/Materials/Marble_3D>
}
def Xform "inst3" (
inherits = </ShaderBall>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (2, 2, 0)
rel material:binding = </MaterialX/Materials/Glass>
}
def Xform "inst4" (
inherits = </ShaderBall>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (4, 4, 0)
rel material:binding = </MaterialX/Materials/ThinFilm>
}
#cloth
def Xform "cloth0" (
inherits = </Cloth>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (0, 0, -1.5)
rel material:binding = </MaterialX/Materials/Velvet>
}
def Xform "cloth1" (
inherits = </Cloth>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (2, 2, -1.5)
rel material:binding = </MaterialX/Materials/Car_Paint>
}
def Xform "cloth2" (
inherits = </Cloth>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (4, 4, -1.5)
rel material:binding = </MaterialX/Materials/Chrome>
}
def Xform "cloth3" (
inherits = </Cloth>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (-2, -2, -1.5)
rel material:binding = </MaterialX/Materials/Tiled_Wood>
}
def Xform "cloth4" (
inherits = </Cloth>
apiSchemas = ["MaterialBindingAPI"]
)
{
double3 xformOp:translate = (-4, -4, -1.5)
rel material:binding = </MaterialX/Materials/Copper>
}