-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.usda
61 lines (51 loc) · 1.45 KB
/
schema.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
#usda 1.0
(
subLayers = [
@usd/schema.usda@,
@usdGeom/schema.usda@
]
)
over "GLOBAL" (
customData = {
string libraryName = "usdGrass"
string libraryPath = "."
string libraryPrefix = "UsdGrass"
}
) {
}
class Grass "Grass" (
doc = """A grass blade implemented as a curved cone-like structure."""
inherits = </Gprim>
customData = {
dictionary extraPlugInfo = {
bool implementsComputeExtent = true
}
}
) {
double radius = 0.4 (
doc = """Radius of the bottom of the grass blade."""
)
double height = 1.0 (
doc = """Height of the grass blade."""
)
double heightPos = 0.5 (
doc = """x position where grass blade reaches its max height.
Goes from 0.0 to 1.0.
0.0 = Halfway through the width.
1.0 = At the width."""
)
double horizontalStretch = 0.5 (
doc = """Horizontal stretch of the grass blade."""
)
double thinning = 0.9 (
doc = """Proportion of max radius to min radius."""
)
color3f color = (0.1, 0.7, 0.1) (
doc = """Color of the grass blade."""
)
float3[] extent = [(-0.4, 0.0, -0.4), (0.54, 1.45, 0.4)] (
doc = """Fallback extent value of a grass blade with
radius = 0.4, height = 1, heightPos = 0.5,
horizontalStretch = 0.5, and thinning = 0.9."""
)
}