#usda 1.0 ( defaultPrim = "Root" metersPerUnit = 1.0 upAxis = "Z" ) def "Root" ( prepend apiSchemas = ["PhysicsCollisionAPI"] ) { def Material "MatDirect" { token outputs:surface.connect = def Shader "Preview" { uniform token info:id = "UsdPreviewSurface" token outputs:surface # A touch of realism: a base color input color3f inputs:diffuseColor = (0.8, 0.2, 0.2) } } def Material "MatGraph" { token outputs:surface.connect = def NodeGraph "Graph" { token outputs:surface.connect = def Shader "Inner" { uniform token info:id = "UsdPreviewSurface" token outputs:surface color3f inputs:diffuseColor = (0.2, 0.6, 0.9) } } } def Xform "Geom" { def Mesh "MeshDirect" { # A simple square made of 2 triangles int[] faceVertexCounts = [3, 3] int[] faceVertexIndices = [0, 1, 2, 2, 3, 0] point3f[] points = [(-1, -1, 0), (0, -1, 0), (0, 0, 0), (-1, 0, 0)] rel material:binding = } def Mesh "MeshGraph" { int[] faceVertexCounts = [3, 3] int[] faceVertexIndices = [0, 1, 2, 2, 3, 0] point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)] rel material:binding = } } }