diff options
Diffstat (limited to 'tests/examplefiles/example.usd')
| -rw-r--r-- | tests/examplefiles/example.usd | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/examplefiles/example.usd b/tests/examplefiles/example.usd index 17c55d81..60172439 100644 --- a/tests/examplefiles/example.usd +++ b/tests/examplefiles/example.usd @@ -6,6 +6,67 @@ upAxis = "Z" ) +class "name" +{ + def Sphere "MySphere" + { + } +} + +class "inherited" ( + inherits = </name> +) +{ + over "MySphere" + { + double radius = 3 + } +} + +def "RedSphere" ( + assetInfo = { + asset identifier = @./some_file.usd@ + string name = "Sphere" + } + specializes = </inherited/MySphere> +) +{ + color3f[] primvars:displayColor = [(0.8, 0, 0)] +} + +def "GreenSphere" ( + assetInfo = { + string name = "Sphere" + } + specializes = </inherited/MySphere> +) +{ + color3f[] primvars:displayColor = [(0, 1, 0)] +} + + +def Scope "variant_thing" ( + variants = { + string shadingVariant = "Red" + } + add variantSets = "shadingVariant" +) +{ + variantSet "shadingVariant" = { + "Green" ( + references = </GreenSphere> + payload = @./something_that/doesnt/exist.usd@ + ) { + + } + "Red" ( + references = </RedSphere> + ) { + + } + } +} + def Xform "Rocks" ( kind = "component" ) |
