-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
HelloPixarUSD.usda
132 lines (115 loc) · 3.67 KB
/
HelloPixarUSD.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
#usda 1.0
(
doc = "SwiftUSD v24.08.12"
)
def Xform "Geometry"
{
float3 xformOp:scale = (5, 5, 5)
double3 xformOp:translate = (0, 5, 0)
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
def Sphere "Sphere" (
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
rel material:binding = </Materials/RedMaterial>
double3 xformOp:translate = (0, 0, -5)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Capsule "Capsule" (
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
rel material:binding = </Materials/YellowMaterial>
float xformOp:rotateX = -90
double3 xformOp:translate = (0, 0, -10)
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateX"]
}
def Cylinder "Cylinder" (
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
rel material:binding = </Materials/GreenMaterial>
float xformOp:rotateX = -90
uniform token[] xformOpOrder = ["xformOp:rotateX"]
}
def Cube "Cube" (
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
rel material:binding = </Materials/BlueMaterial>
double3 xformOp:translate = (0, 0, 5)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Cone "Cone" (
prepend apiSchemas = ["MaterialBindingAPI"]
)
{
rel material:binding = </Materials/PurpleMaterial>
float xformOp:rotateX = -90
double3 xformOp:translate = (0, 0, 10)
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateX"]
}
}
def "Materials"
{
def Material "RedMaterial"
{
token outputs:surface.connect = </Materials/RedMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0.992, 0.207, 0.061)
float inputs:metallic = 0
float inputs:roughness = 0.4
token outputs:surface
}
}
def Material "YellowMaterial"
{
token outputs:surface.connect = </Materials/YellowMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0.95, 0.8, 0)
float inputs:metallic = 0
float inputs:roughness = 0.4
token outputs:surface
}
}
def Material "GreenMaterial"
{
token outputs:surface.connect = </Materials/GreenMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0, 0.766, 0.014)
float inputs:metallic = 0
float inputs:roughness = 0.4
token outputs:surface
}
}
def Material "BlueMaterial"
{
token outputs:surface.connect = </Materials/BlueMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0.132, 0.218, 0.932)
float inputs:metallic = 0
float inputs:roughness = 0.4
token outputs:surface
}
}
def Material "PurpleMaterial"
{
token outputs:surface.connect = </Materials/PurpleMaterial/PBRShader.outputs:surface>
def Shader "PBRShader"
{
uniform token info:id = "UsdPreviewSurface"
color3f inputs:diffuseColor = (0.531, 0.122, 0.922)
float inputs:metallic = 0
float inputs:roughness = 0.4
token outputs:surface
}
}
}