Update nodegraph to fix it
Browse files- usd/nodegraph.usda +63 -61
usd/nodegraph.usda
CHANGED
|
@@ -1,62 +1,64 @@
|
|
| 1 |
-
#usda 1.0
|
| 2 |
-
(
|
| 3 |
-
defaultPrim = "Root"
|
| 4 |
-
metersPerUnit = 1.0
|
| 5 |
-
upAxis = "Z"
|
| 6 |
-
)
|
| 7 |
-
|
| 8 |
-
def "Root"
|
| 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 |
}
|
|
|
|
| 1 |
+
#usda 1.0
|
| 2 |
+
(
|
| 3 |
+
defaultPrim = "Root"
|
| 4 |
+
metersPerUnit = 1.0
|
| 5 |
+
upAxis = "Z"
|
| 6 |
+
)
|
| 7 |
+
|
| 8 |
+
def "Root" (
|
| 9 |
+
prepend apiSchemas = ["PhysicsCollisionAPI"]
|
| 10 |
+
)
|
| 11 |
+
{
|
| 12 |
+
def Material "MatDirect"
|
| 13 |
+
{
|
| 14 |
+
token outputs:surface.connect = </Root/MatDirect/Preview.outputs:surface>
|
| 15 |
+
|
| 16 |
+
def Shader "Preview"
|
| 17 |
+
{
|
| 18 |
+
uniform token info:id = "UsdPreviewSurface"
|
| 19 |
+
token outputs:surface
|
| 20 |
+
|
| 21 |
+
# A touch of realism: a base color input
|
| 22 |
+
color3f inputs:diffuseColor = (0.8, 0.2, 0.2)
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
def Material "MatGraph"
|
| 27 |
+
{
|
| 28 |
+
token outputs:surface.connect = </Root/MatGraph/Graph.outputs:surface>
|
| 29 |
+
|
| 30 |
+
def NodeGraph "Graph"
|
| 31 |
+
{
|
| 32 |
+
token outputs:surface.connect = </Root/MatGraph/Graph/Inner.outputs:surface>
|
| 33 |
+
|
| 34 |
+
def Shader "Inner"
|
| 35 |
+
{
|
| 36 |
+
uniform token info:id = "UsdPreviewSurface"
|
| 37 |
+
token outputs:surface
|
| 38 |
+
color3f inputs:diffuseColor = (0.2, 0.6, 0.9)
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def Xform "Geom"
|
| 44 |
+
{
|
| 45 |
+
def Mesh "MeshDirect"
|
| 46 |
+
{
|
| 47 |
+
# A simple square made of 2 triangles
|
| 48 |
+
int[] faceVertexCounts = [3, 3]
|
| 49 |
+
int[] faceVertexIndices = [0, 1, 2, 2, 3, 0]
|
| 50 |
+
point3f[] points = [(-1, -1, 0), (0, -1, 0), (0, 0, 0), (-1, 0, 0)]
|
| 51 |
+
|
| 52 |
+
rel material:binding = </Root/MatDirect>
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
def Mesh "MeshGraph"
|
| 56 |
+
{
|
| 57 |
+
int[] faceVertexCounts = [3, 3]
|
| 58 |
+
int[] faceVertexIndices = [0, 1, 2, 2, 3, 0]
|
| 59 |
+
point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)]
|
| 60 |
+
|
| 61 |
+
rel material:binding = </Root/MatGraph>
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
}
|