Zhehuan commited on
Commit
8d9621d
·
verified ·
1 Parent(s): fe31f14

Update nodegraph to fix it

Browse files
Files changed (1) hide show
  1. 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
- def Material "MatDirect"
11
- {
12
- token outputs:surface.connect = </Root/MatDirect/Preview.outputs:surface>
13
-
14
- def Shader "Preview"
15
- {
16
- uniform token info:id = "UsdPreviewSurface"
17
- token outputs:surface
18
-
19
- # A touch of realism: a base color input
20
- color3f inputs:diffuseColor = (0.8, 0.2, 0.2)
21
- }
22
- }
23
-
24
- def Material "MatGraph"
25
- {
26
- token outputs:surface.connect = </Root/MatGraph/Graph.outputs:surface>
27
-
28
- def NodeGraph "Graph"
29
- {
30
- token outputs:surface.connect = </Root/MatGraph/Graph/Inner.outputs:surface>
31
-
32
- def Shader "Inner"
33
- {
34
- uniform token info:id = "UsdPreviewSurface"
35
- token outputs:surface
36
- color3f inputs:diffuseColor = (0.2, 0.6, 0.9)
37
- }
38
- }
39
- }
40
-
41
- def Xform "Geom"
42
- {
43
- def Mesh "MeshDirect"
44
- {
45
- # A simple square made of 2 triangles
46
- int[] faceVertexCounts = [3, 3]
47
- int[] faceVertexIndices = [0, 1, 2, 2, 3, 0]
48
- point3f[] points = [(-1, -1, 0), (0, -1, 0), (0, 0, 0), (-1, 0, 0)]
49
-
50
- rel material:binding = </Root/MatDirect>
51
- }
52
-
53
- def Mesh "MeshGraph"
54
- {
55
- int[] faceVertexCounts = [3, 3]
56
- int[] faceVertexIndices = [0, 1, 2, 2, 3, 0]
57
- point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)]
58
-
59
- rel material:binding = </Root/MatGraph>
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
  }