@markandre13/usd.js 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/compression/compress.js +5 -2
  2. package/dist/compression/compress.js.map +1 -1
  3. package/dist/compression/integers.js +11 -0
  4. package/dist/compression/integers.js.map +1 -1
  5. package/dist/compression/lz4.d.ts +18 -1
  6. package/dist/compression/lz4.js +100 -17
  7. package/dist/compression/lz4.js.map +1 -1
  8. package/dist/crate/BootStrap.js +2 -0
  9. package/dist/crate/BootStrap.js.map +1 -1
  10. package/dist/crate/Crate.d.ts +8 -1
  11. package/dist/crate/Crate.js +49 -4
  12. package/dist/crate/Crate.js.map +1 -1
  13. package/dist/crate/Fields.d.ts +1 -1
  14. package/dist/crate/Fields.js +26 -1
  15. package/dist/crate/Fields.js.map +1 -1
  16. package/dist/crate/Paths.d.ts +1 -1
  17. package/dist/crate/Paths.js +16 -2
  18. package/dist/crate/Paths.js.map +1 -1
  19. package/dist/crate/Reader.js +3 -3
  20. package/dist/crate/Reader.js.map +1 -1
  21. package/dist/crate/SpecType.d.ts +3 -3
  22. package/dist/crate/SpecType.js +2 -0
  23. package/dist/crate/SpecType.js.map +1 -1
  24. package/dist/crate/Specifier.d.ts +1 -1
  25. package/dist/crate/Specs.js +1 -0
  26. package/dist/crate/Specs.js.map +1 -1
  27. package/dist/crate/Stage.d.ts +1 -1
  28. package/dist/crate/Stage.js +1 -0
  29. package/dist/crate/Stage.js.map +1 -1
  30. package/dist/crate/Strings.js +5 -0
  31. package/dist/crate/Strings.js.map +1 -1
  32. package/dist/crate/Tokens.js +47 -1
  33. package/dist/crate/Tokens.js.map +1 -1
  34. package/dist/crate/ValueRep.d.ts +1 -1
  35. package/dist/crate/ValueRep.js +27 -3
  36. package/dist/crate/ValueRep.js.map +1 -1
  37. package/dist/crate/Variability.d.ts +1 -1
  38. package/dist/crate/Writer.d.ts +3 -0
  39. package/dist/crate/Writer.js +26 -1
  40. package/dist/crate/Writer.js.map +1 -1
  41. package/dist/detail/hexdump.js +1 -0
  42. package/dist/detail/hexdump.js.map +1 -1
  43. package/dist/nodes/attributes/AssetPathAttr.d.ts +1 -1
  44. package/dist/nodes/attributes/AssetPathAttr.js +1 -1
  45. package/dist/nodes/attributes/AssetPathAttr.js.map +1 -1
  46. package/dist/nodes/attributes/Attribute.d.ts +1 -1
  47. package/dist/nodes/attributes/Attribute.js +1 -1
  48. package/dist/nodes/attributes/Attribute.js.map +1 -1
  49. package/dist/nodes/attributes/BooleanAttr.d.ts +1 -1
  50. package/dist/nodes/attributes/BooleanAttr.js +1 -1
  51. package/dist/nodes/attributes/BooleanAttr.js.map +1 -1
  52. package/dist/nodes/attributes/Color3fAttr.d.ts +3 -3
  53. package/dist/nodes/attributes/Color3fAttr.js +1 -1
  54. package/dist/nodes/attributes/Color3fAttr.js.map +1 -1
  55. package/dist/nodes/attributes/FloatAttr.d.ts +1 -1
  56. package/dist/nodes/attributes/FloatAttr.js +1 -1
  57. package/dist/nodes/attributes/FloatAttr.js.map +1 -1
  58. package/dist/nodes/attributes/IntArrayAttr.d.ts +1 -1
  59. package/dist/nodes/attributes/IntArrayAttr.js +1 -1
  60. package/dist/nodes/attributes/IntArrayAttr.js.map +1 -1
  61. package/dist/nodes/attributes/Relationship.d.ts +1 -1
  62. package/dist/nodes/attributes/Relationship.js +1 -1
  63. package/dist/nodes/attributes/Relationship.js.map +1 -1
  64. package/dist/nodes/attributes/StringAttr.d.ts +1 -1
  65. package/dist/nodes/attributes/StringAttr.js +1 -1
  66. package/dist/nodes/attributes/StringAttr.js.map +1 -1
  67. package/dist/nodes/attributes/TokenAttr.d.ts +1 -1
  68. package/dist/nodes/attributes/TokenAttr.js +1 -1
  69. package/dist/nodes/attributes/TokenAttr.js.map +1 -1
  70. package/dist/nodes/attributes/VariabilityAttr.d.ts +1 -1
  71. package/dist/nodes/attributes/VariabilityAttr.js +1 -1
  72. package/dist/nodes/attributes/VariabilityAttr.js.map +1 -1
  73. package/dist/nodes/attributes/Vec2fArrayAttr.d.ts +1 -1
  74. package/dist/nodes/attributes/Vec2fArrayAttr.js +1 -1
  75. package/dist/nodes/attributes/Vec2fArrayAttr.js.map +1 -1
  76. package/dist/nodes/attributes/Vec3fArrayAttr.d.ts +1 -1
  77. package/dist/nodes/attributes/Vec3fArrayAttr.js +1 -1
  78. package/dist/nodes/attributes/Vec3fArrayAttr.js.map +1 -1
  79. package/dist/nodes/geometry/Boundable.d.ts +6 -0
  80. package/dist/nodes/geometry/Boundable.js +6 -0
  81. package/dist/nodes/geometry/Boundable.js.map +1 -1
  82. package/dist/nodes/geometry/Camera.d.ts +7 -2
  83. package/dist/nodes/geometry/Camera.js +36 -0
  84. package/dist/nodes/geometry/Camera.js.map +1 -1
  85. package/dist/nodes/geometry/GeomSubset.d.ts +1 -1
  86. package/dist/nodes/geometry/GeomSubset.js +1 -1
  87. package/dist/nodes/geometry/GeomSubset.js.map +1 -1
  88. package/dist/nodes/geometry/Gprim.d.ts +28 -0
  89. package/dist/nodes/geometry/Gprim.js +30 -0
  90. package/dist/nodes/geometry/Gprim.js.map +1 -1
  91. package/dist/nodes/geometry/Imageable.d.ts +9 -0
  92. package/dist/nodes/geometry/Imageable.js +9 -0
  93. package/dist/nodes/geometry/Imageable.js.map +1 -1
  94. package/dist/nodes/geometry/Mesh.d.ts +69 -7
  95. package/dist/nodes/geometry/Mesh.js +100 -10
  96. package/dist/nodes/geometry/Mesh.js.map +1 -1
  97. package/dist/nodes/geometry/PointBased.d.ts +19 -2
  98. package/dist/nodes/geometry/PointBased.js +24 -12
  99. package/dist/nodes/geometry/PointBased.js.map +1 -1
  100. package/dist/nodes/geometry/Scope.d.ts +9 -1
  101. package/dist/nodes/geometry/Scope.js +8 -0
  102. package/dist/nodes/geometry/Scope.js.map +1 -1
  103. package/dist/nodes/geometry/SkelBindingAPI.d.ts +53 -0
  104. package/dist/nodes/geometry/SkelBindingAPI.js +2 -0
  105. package/dist/nodes/geometry/SkelBindingAPI.js.map +1 -0
  106. package/dist/nodes/geometry/Xform.d.ts +6 -1
  107. package/dist/nodes/geometry/Xform.js +5 -0
  108. package/dist/nodes/geometry/Xform.js.map +1 -1
  109. package/dist/nodes/geometry/Xformable.d.ts +9 -3
  110. package/dist/nodes/geometry/Xformable.js +6 -0
  111. package/dist/nodes/geometry/Xformable.js.map +1 -1
  112. package/dist/nodes/lux/BoundableLightBase.d.ts +8 -0
  113. package/dist/nodes/lux/BoundableLightBase.js +8 -0
  114. package/dist/nodes/lux/BoundableLightBase.js.map +1 -1
  115. package/dist/nodes/lux/DomeLight.d.ts +11 -1
  116. package/dist/nodes/lux/DomeLight.js +10 -0
  117. package/dist/nodes/lux/DomeLight.js.map +1 -1
  118. package/dist/nodes/lux/NonboundableLightBase.d.ts +1 -1
  119. package/dist/nodes/lux/NonboundableLightBase.js +10 -1
  120. package/dist/nodes/lux/NonboundableLightBase.js.map +1 -1
  121. package/dist/nodes/lux/SphereLight.d.ts +9 -1
  122. package/dist/nodes/lux/SphereLight.js +8 -0
  123. package/dist/nodes/lux/SphereLight.js.map +1 -1
  124. package/dist/nodes/shader/Material.d.ts +7 -1
  125. package/dist/nodes/shader/Material.js +6 -0
  126. package/dist/nodes/shader/Material.js.map +1 -1
  127. package/dist/nodes/shader/NodeGraph.d.ts +7 -0
  128. package/dist/nodes/shader/NodeGraph.js +7 -0
  129. package/dist/nodes/shader/NodeGraph.js.map +1 -1
  130. package/dist/nodes/shader/Shader.d.ts +9 -1
  131. package/dist/nodes/shader/Shader.js +8 -0
  132. package/dist/nodes/shader/Shader.js.map +1 -1
  133. package/dist/nodes/skeleton/SkelRoot.d.ts +6 -1
  134. package/dist/nodes/skeleton/SkelRoot.js +5 -0
  135. package/dist/nodes/skeleton/SkelRoot.js.map +1 -1
  136. package/dist/nodes/skeleton/Skeleton.d.ts +41 -4
  137. package/dist/nodes/skeleton/Skeleton.js +37 -0
  138. package/dist/nodes/skeleton/Skeleton.js.map +1 -1
  139. package/dist/nodes/usd/PseudoRoot.d.ts +1 -1
  140. package/dist/nodes/usd/PseudoRoot.js +21 -1
  141. package/dist/nodes/usd/PseudoRoot.js.map +1 -1
  142. package/dist/nodes/usd/SchemaBase.d.ts +1 -1
  143. package/dist/nodes/usd/SchemaBase.js +1 -1
  144. package/dist/nodes/usd/SchemaBase.js.map +1 -1
  145. package/dist/nodes/usd/Typed.d.ts +10 -0
  146. package/dist/nodes/usd/Typed.js +10 -0
  147. package/dist/nodes/usd/Typed.js.map +1 -1
  148. package/dist/{crate → nodes/usd}/UsdNode.d.ts +18 -9
  149. package/dist/{crate → nodes/usd}/UsdNode.js +35 -2
  150. package/dist/nodes/usd/UsdNode.js.map +1 -0
  151. package/package.json +8 -7
  152. package/dist/crate/UsdNode.js.map +0 -1
  153. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,53 @@
1
+ import type { Skeleton } from "../skeleton/Skeleton";
2
+ /**
3
+ * Provides API for authoring and extracting all the skinning-related
4
+ * data that lives in the "geometry hierarchy" of prims and models that want
5
+ * to be skeletally deformed.
6
+ */
7
+ export interface SkelBindingAPI {
8
+ /**
9
+ * Skeleton to be bound to this prim and its descendents that
10
+ * possess a mapping and weighting to the joints of the identified
11
+ * Skeleton.
12
+ */
13
+ set skeleton(value: Skeleton | undefined);
14
+ /**
15
+ * Encodes the bind-time world space transforms of the prim.
16
+ * If the transform is identical for a group of gprims that share a common
17
+ * ancestor, the transform may be authored on the ancestor, to "inherit"
18
+ * down to all the leaf gprims. If this transform is unset, an identity
19
+ * transform is used instead.
20
+ */
21
+ set geomBindTransform(value: ArrayLike<number> | undefined);
22
+ /**
23
+ * Indices into the *joints* attribute of the closest (in namespace) bound Skeleton
24
+ * that affect each point of a PointBased gprim.
25
+ *
26
+ * The primvar can have either *constant* or *vertex* interpolation.
27
+ *
28
+ * This primvar's *elementSize* will determine how many joint influences
29
+ * apply to each point. Indices must point be valid. Null influences should
30
+ * be defined by setting values in jointWeights to zero.
31
+ *
32
+ * [ point0 -> (joint0, joint1), ...]
33
+ */
34
+ set jointIndices(value: {
35
+ elementSize: number;
36
+ indices: ArrayLike<number>;
37
+ } | undefined);
38
+ /**
39
+ * Weights for the joints that affect each point of a PointBased
40
+ * gprim.
41
+ *
42
+ * The primvar can have either *constant* or *vertex* interpolation.
43
+ * This primvar's *elementSize* will determine how many joints influences
44
+ * apply to each point.
45
+ *
46
+ * The length, interpolation, and elementSize of *jointWeights* must match
47
+ * that of *jointIndices*.
48
+ */
49
+ set jointWeights(value: {
50
+ elementSize: number;
51
+ indices: ArrayLike<number>;
52
+ } | undefined);
53
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SkelBindingAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkelBindingAPI.js","sourceRoot":"","sources":["../../../src/nodes/geometry/SkelBindingAPI.ts"],"names":[],"mappings":""}
@@ -1,5 +1,10 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { Xformable } from "./Xformable";
3
+ /**
4
+ * Concrete prim schema for a transform, which implements Xformable
5
+ *
6
+ * defined in pxr/usd/usdGeom/schema.usda
7
+ */
3
8
  export declare class Xform extends Xformable {
4
9
  constructor(parent: UsdNode, name: string);
5
10
  }
@@ -1,6 +1,11 @@
1
1
  import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { Xformable } from "./Xformable";
4
+ /**
5
+ * Concrete prim schema for a transform, which implements Xformable
6
+ *
7
+ * defined in pxr/usd/usdGeom/schema.usda
8
+ */
4
9
  export class Xform extends Xformable {
5
10
  constructor(parent, name) {
6
11
  super(parent.crate, parent, -1, name, true);
@@ -1 +1 @@
1
- {"version":3,"file":"Xform.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAOvC,MAAM,OAAO,KAAM,SAAQ,SAAS;IAChC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IAC3B,CAAC;CACJ"}
1
+ {"version":3,"file":"Xform.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;GAIG;AACH,MAAM,OAAO,KAAM,SAAQ,SAAS;IAChC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IAC3B,CAAC;CACJ"}
@@ -1,10 +1,16 @@
1
1
  import { Imageable } from "./Imageable";
2
+ /**
3
+ * Base class for all transformable prims, which allows arbitrary
4
+ * sequences of component affine transformations to be encoded.
5
+ *
6
+ * defined in pxr/usd/usdGeom/schema.usda
7
+ */
2
8
  export declare abstract class Xformable extends Imageable {
3
9
  customData?: any;
4
10
  encodeFields(): void;
5
11
  set blenderObjectName(value: string | undefined);
6
- set rotateXYZ(value: number[] | undefined);
7
- set scale(value: number[] | undefined);
8
- set translate(value: number[] | undefined);
12
+ set rotateXYZ(value: ArrayLike<number> | undefined);
13
+ set scale(value: ArrayLike<number> | undefined);
14
+ set translate(value: ArrayLike<number> | undefined);
9
15
  set xformOrder(value: ("xformOp:translate" | "xformOp:rotateXYZ" | "xformOp:scale")[] | undefined);
10
16
  }
@@ -2,6 +2,12 @@ import { Variability } from "../../crate/Variability";
2
2
  import { Attribute } from "../attributes/Attribute";
3
3
  import { StringAttr } from "../attributes/StringAttr";
4
4
  import { Imageable } from "./Imageable";
5
+ /**
6
+ * Base class for all transformable prims, which allows arbitrary
7
+ * sequences of component affine transformations to be encoded.
8
+ *
9
+ * defined in pxr/usd/usdGeom/schema.usda
10
+ */
5
11
  export class Xformable extends Imageable {
6
12
  encodeFields() {
7
13
  super.encodeFields();
@@ -1 +1 @@
1
- {"version":3,"file":"Xformable.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xformable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQvC,MAAM,OAAgB,SAAU,SAAQ,SAAS;IAGpC,YAAY;QACjB,KAAK,CAAC,YAAY,EAAE,CAAA;QACpB,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;IACrD,CAAC;IAED,IAAI,iBAAiB,CAAC,KAAyB;QAC3C,IAAI,CAAC,WAAW,CAAC,oCAAoC,CAAC,CAAA;QACtD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,UAAU,CAAC,IAAI,EAAE,oCAAoC,EAAE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,CAAC,CAAA;QACjC,IAAI,SAAS,CAAC,IAAI,EAAE,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;YACnC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACnC,CAAC,CAAC,CAAA;IACN,CAAC;IACD,IAAI,SAAS,CAAC,KAAoC;QAC9C,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAA;QACrC,IAAI,SAAS,CAAC,IAAI,EAAE,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE;YAC9C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;YACpC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACnC,CAAC,CAAC,CAAA;IACN,CAAC;IACD,IAAI,UAAU,CAAC,KAAkF;QAC7F,IAAI,SAAS,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE;YACzC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;YACpC,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;YACvD,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACxC,CAAC,CAAC,CAAA;IACN,CAAC;CACJ"}
@@ -1,4 +1,12 @@
1
1
  import { Boundable } from "../geometry/Boundable";
2
+ /**
3
+ * Base class for intrinsic lights that are boundable.
4
+ *
5
+ * The primary purpose of this class is to provide a direct API to the
6
+ * functions provided by LightAPI for concrete derived light types.
7
+ *
8
+ * defined in pxr/usd/usdLux/schema.usda
9
+ */
2
10
  export declare class BoundableLightBase extends Boundable {
3
11
  set enableColorTemperature(value: boolean | undefined);
4
12
  set normalize(value: boolean | undefined);
@@ -1,6 +1,14 @@
1
1
  import { Attribute } from "../attributes/Attribute";
2
2
  import { StringAttr } from "../attributes/StringAttr";
3
3
  import { Boundable } from "../geometry/Boundable";
4
+ /**
5
+ * Base class for intrinsic lights that are boundable.
6
+ *
7
+ * The primary purpose of this class is to provide a direct API to the
8
+ * functions provided by LightAPI for concrete derived light types.
9
+ *
10
+ * defined in pxr/usd/usdLux/schema.usda
11
+ */
4
12
  export class BoundableLightBase extends Boundable {
5
13
  set enableColorTemperature(value) {
6
14
  this.deleteChild("inputs:enableColorTemperature");
@@ -1 +1 @@
1
- {"version":3,"file":"BoundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/BoundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAUjD,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC7C,IAAI,sBAAsB,CAAC,KAA0B;QACjD,IAAI,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAA;QACjD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,+BAA+B,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC1D,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;gBACjC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACrC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;IACD,IAAI,SAAS,CAAC,KAA0B;QACpC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;gBACj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} from "../usd/UsdNode";
2
2
  import { NonboundableLightBase } from "./NonboundableLightBase";
3
+ /**
4
+ * Light emitted inward from a distant external environment,
5
+ * such as a sky or IBL light probe.
6
+ *
7
+ * In this version of the dome light, the dome's default orientation is such
8
+ * that its top pole is aligned with the world's +Y axis. This adheres to the
9
+ * OpenEXR specification for latlong environment maps.
10
+ *
11
+ * defined in pxr/usd/usdLux/schema.usda
12
+ */
3
13
  export declare class DomeLight extends NonboundableLightBase {
4
14
  constructor(parent: UsdNode, name: string);
5
15
  encodeFields(): void;
@@ -2,6 +2,16 @@ import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { AssetPathAttr } from "../attributes/AssetPathAttr";
4
4
  import { NonboundableLightBase } from "./NonboundableLightBase";
5
+ /**
6
+ * Light emitted inward from a distant external environment,
7
+ * such as a sky or IBL light probe.
8
+ *
9
+ * In this version of the dome light, the dome's default orientation is such
10
+ * that its top pole is aligned with the world's +Y axis. This adheres to the
11
+ * OpenEXR specification for latlong environment maps.
12
+ *
13
+ * defined in pxr/usd/usdLux/schema.usda
14
+ */
5
15
  export class DomeLight extends NonboundableLightBase {
6
16
  constructor(parent, name) {
7
17
  super(parent.crate, parent, -1, name, true);
@@ -1 +1 @@
1
- {"version":3,"file":"DomeLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/DomeLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAY/D,MAAM,OAAO,SAAU,SAAQ,qBAAqB;IAChD,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAA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C;IACQ,YAAY;QACjB,KAAK,CAAC,YAAY,EAAE,CAAA;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;QACxB,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CACjC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CACxD,CAAA;QACD,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CACjC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,CACjD,CAAA;IACL,CAAC;IAED,IAAI,WAAW,CAAC,KAAyB;QACrC,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAA;QACtC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,aAAa,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAA;QACzD,CAAC;IACL,CAAC;CAEJ"}
@@ -1,4 +1,4 @@
1
- import { UsdNode } from "../../crate/UsdNode";
1
+ import { UsdNode } from "../usd/UsdNode";
2
2
  export declare class NonboundableLightBase extends UsdNode {
3
3
  set normalize(value: boolean | undefined);
4
4
  set intensity(value: number | undefined);
@@ -1,6 +1,15 @@
1
- import { UsdNode } from "../../crate/UsdNode";
1
+ import { UsdNode } from "../usd/UsdNode";
2
2
  import { Attribute } from "../attributes/Attribute";
3
3
  export class NonboundableLightBase extends UsdNode {
4
+ // set enableColorTemperature(value: boolean | undefined) {
5
+ // this.deleteChild("inputs:enableColorTemperature")
6
+ // if (value !== undefined) {
7
+ // new AttributeX(this, "inputs:radius", (node) => {
8
+ // node.setToken("typeName", "bool")
9
+ // node.setBoolean("default", value)
10
+ // })
11
+ // }
12
+ // }
4
13
  set normalize(value) {
5
14
  this.deleteChild("inputs:normalize");
6
15
  if (value !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"NonboundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/NonboundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnD,MAAM,OAAO,qBAAsB,SAAQ,OAAO;IAU9C,IAAI,SAAS,CAAC,KAA0B;QACpC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;gBACjC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACrC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;IACD,IAAI,SAAS,CAAC,KAAyB;QACnC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;gBAClC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACnC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
1
+ {"version":3,"file":"NonboundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/NonboundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnD,MAAM,OAAO,qBAAsB,SAAQ,OAAO;IAC9C,2DAA2D;IAC3D,wDAAwD;IACxD,iCAAiC;IACjC,4DAA4D;IAC5D,gDAAgD;IAChD,gDAAgD;IAChD,aAAa;IACb,QAAQ;IACR,IAAI;IACJ,IAAI,SAAS,CAAC,KAA0B;QACpC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;gBACjC,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACrC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;IACD,IAAI,SAAS,CAAC,KAAyB;QACnC,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;QACpC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;gBAClC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACnC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -1,6 +1,14 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { BoundableLightBase } from "./BoundableLightBase";
3
+ /**
4
+ * Light emitted outward from a sphere.
5
+ *
6
+ * defined in pxr/usd/usdLux/schema.usda
7
+ */
3
8
  export declare class SphereLight extends BoundableLightBase {
4
9
  constructor(parent: UsdNode, name: string);
10
+ /**
11
+ * Radius of the sphere.
12
+ */
5
13
  set radius(value: number | undefined);
6
14
  }
@@ -2,6 +2,11 @@ import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { Attribute } from "../attributes/Attribute";
4
4
  import { BoundableLightBase } from "./BoundableLightBase";
5
+ /**
6
+ * Light emitted outward from a sphere.
7
+ *
8
+ * defined in pxr/usd/usdLux/schema.usda
9
+ */
5
10
  export class SphereLight extends BoundableLightBase {
6
11
  constructor(parent, name) {
7
12
  super(parent.crate, parent, -1, name, true);
@@ -9,6 +14,9 @@ export class SphereLight extends BoundableLightBase {
9
14
  this.specifier = Specifier.Def;
10
15
  this.typeName = "SphereLight";
11
16
  }
17
+ /**
18
+ * Radius of the sphere.
19
+ */
12
20
  set radius(value) {
13
21
  this.deleteChild("inputs:radius");
14
22
  if (value !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"SphereLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/SphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAOzD,MAAM,OAAO,WAAY,SAAQ,kBAAkB;IAC/C,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAA;IAEjC,CAAC;IAKD,IAAI,MAAM,CAAC,KAAyB;QAChC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAA;QACjC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC1C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;gBAClC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACnC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
1
+ {"version":3,"file":"SphereLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/SphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;GAIG;AACH,MAAM,OAAO,WAAY,SAAQ,kBAAkB;IAC/C,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAA;IAEjC,CAAC;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAyB;QAChC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAA;QACjC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC1C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;gBAClC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACnC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -1,5 +1,11 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { NodeGraph } from "./NodeGraph";
3
+ /**
4
+ * A Material provides a container into which multiple "render contexts"
5
+ * can add data that defines a "shading material" for a renderer.
6
+ *
7
+ * defined in pxr/usd/usdShade/schema.usda
8
+ */
3
9
  export declare class Material extends NodeGraph {
4
10
  constructor(parent: UsdNode, name: string);
5
11
  set blenderDataName(value: string | undefined);
@@ -2,6 +2,12 @@ import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { StringAttr } from "../attributes/StringAttr";
4
4
  import { NodeGraph } from "./NodeGraph";
5
+ /**
6
+ * A Material provides a container into which multiple "render contexts"
7
+ * can add data that defines a "shading material" for a renderer.
8
+ *
9
+ * defined in pxr/usd/usdShade/schema.usda
10
+ */
5
11
  export class Material extends NodeGraph {
6
12
  constructor(parent, name) {
7
13
  super(parent.crate, parent, -1, name, true);
@@ -1 +1 @@
1
- {"version":3,"file":"Material.js","sourceRoot":"","sources":["../../../src/nodes/shader/Material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQvC,MAAM,OAAO,QAAS,SAAQ,SAAS;IACnC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAA;IAC9B,CAAC;IACD,IAAI,eAAe,CAAC,KAAyB;QACzC,IAAI,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAA;QACpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,UAAU,CAAC,IAAI,EAAE,kCAAkC,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAA;QACnF,CAAC;IACL,CAAC;CACJ"}
1
+ {"version":3,"file":"Material.js","sourceRoot":"","sources":["../../../src/nodes/shader/Material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,SAAS;IACnC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAA;IAC9B,CAAC;IACD,IAAI,eAAe,CAAC,KAAyB;QACzC,IAAI,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAA;QACpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,UAAU,CAAC,IAAI,EAAE,kCAAkC,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAA;QACnF,CAAC;IACL,CAAC;CACJ"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * A node-graph is a container for shading nodes, as well as other
3
+ * node-graphs. It has a public input interface and provides a list of public
4
+ * outputs.
5
+ *
6
+ * defined in pxr/usd/usdShade/schema.usda
7
+ */
1
8
  import { Typed } from "../usd/Typed";
2
9
  export declare class NodeGraph extends Typed {
3
10
  }
@@ -1,3 +1,10 @@
1
+ /**
2
+ * A node-graph is a container for shading nodes, as well as other
3
+ * node-graphs. It has a public input interface and provides a list of public
4
+ * outputs.
5
+ *
6
+ * defined in pxr/usd/usdShade/schema.usda
7
+ */
1
8
  import { Typed } from "../usd/Typed";
2
9
  export class NodeGraph extends Typed {
3
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NodeGraph.js","sourceRoot":"","sources":["../../../src/nodes/shader/NodeGraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,MAAM,OAAO,SAAU,SAAQ,KAAK;CAAI"}
1
+ {"version":3,"file":"NodeGraph.js","sourceRoot":"","sources":["../../../src/nodes/shader/NodeGraph.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC,MAAM,OAAO,SAAU,SAAQ,KAAK;CAAI"}
@@ -1,5 +1,13 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { Typed } from "../usd/Typed";
3
+ /**
4
+ * Base class for all USD shaders. Shaders are the building blocks
5
+ * of shading networks. While UsdShadeShader objects are not target specific,
6
+ * each renderer or application target may derive its own renderer-specific
7
+ * shader object types from this base, if needed.
8
+ *
9
+ * defined in pxr/usd/usdShade/schema.usda
10
+ */
3
11
  export declare class Shader extends Typed {
4
12
  constructor(parent: UsdNode, name: string);
5
13
  set blenderDataName(value: string | undefined);
@@ -2,6 +2,14 @@ import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { StringAttr } from "../attributes/StringAttr";
4
4
  import { Typed } from "../usd/Typed";
5
+ /**
6
+ * Base class for all USD shaders. Shaders are the building blocks
7
+ * of shading networks. While UsdShadeShader objects are not target specific,
8
+ * each renderer or application target may derive its own renderer-specific
9
+ * shader object types from this base, if needed.
10
+ *
11
+ * defined in pxr/usd/usdShade/schema.usda
12
+ */
5
13
  export class Shader extends Typed {
6
14
  constructor(parent, name) {
7
15
  super(parent.crate, parent, -1, name, false);
@@ -1 +1 @@
1
- {"version":3,"file":"Shader.js","sourceRoot":"","sources":["../../../src/nodes/shader/Shader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAUpC,MAAM,OAAO,MAAO,SAAQ,KAAK;IAC7B,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QAC5C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC5B,CAAC;IACD,IAAI,eAAe,CAAC,KAAyB;QACzC,IAAI,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAA;QACpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,UAAU,CAAC,IAAI,EAAE,kCAAkC,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAA;QACnF,CAAC;IACL,CAAC;CACJ"}
1
+ {"version":3,"file":"Shader.js","sourceRoot":"","sources":["../../../src/nodes/shader/Shader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC;;;;;;;GAOG;AACH,MAAM,OAAO,MAAO,SAAQ,KAAK;IAC7B,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QAC5C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC5B,CAAC;IACD,IAAI,eAAe,CAAC,KAAyB;QACzC,IAAI,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAA;QACpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,UAAU,CAAC,IAAI,EAAE,kCAAkC,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAA;QACnF,CAAC;IACL,CAAC;CACJ"}
@@ -1,5 +1,10 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { Boundable } from "../geometry/Boundable";
3
+ /**
4
+ * Concrete prim schema for a transform, which implements Xformable
5
+ *
6
+ * defined in pxr/usd/usdSkel/schema.usda
7
+ */
3
8
  export declare class SkelRoot extends Boundable {
4
9
  constructor(parent: UsdNode, name: string);
5
10
  }
@@ -1,6 +1,11 @@
1
1
  import { Specifier } from "../../crate/Specifier";
2
2
  import { SpecType } from "../../crate/SpecType";
3
3
  import { Boundable } from "../geometry/Boundable";
4
+ /**
5
+ * Concrete prim schema for a transform, which implements Xformable
6
+ *
7
+ * defined in pxr/usd/usdSkel/schema.usda
8
+ */
4
9
  export class SkelRoot extends Boundable {
5
10
  constructor(parent, name) {
6
11
  super(parent.crate, parent, -1, name, true);
@@ -1 +1 @@
1
- {"version":3,"file":"SkelRoot.js","sourceRoot":"","sources":["../../../src/nodes/skeleton/SkelRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAOjD,MAAM,OAAO,QAAS,SAAQ,SAAS;IACnC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAA;IAC9B,CAAC;CACJ"}
1
+ {"version":3,"file":"SkelRoot.js","sourceRoot":"","sources":["../../../src/nodes/skeleton/SkelRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,SAAS;IACnC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAA;IAC9B,CAAC;CACJ"}
@@ -1,11 +1,48 @@
1
- import type { UsdNode } from "../../crate/UsdNode";
1
+ import type { UsdNode } from "../usd/UsdNode";
2
2
  import { Boundable } from "../geometry/Boundable";
3
+ /**
4
+ * Describes a skeleton.
5
+ *
6
+ * defined in pxr/usd/usdSkel/schema.usda
7
+ */
3
8
  export declare class Skeleton extends Boundable {
4
9
  constructor(parent: UsdNode, name: string);
5
10
  encodeFields(): void;
11
+ /**
12
+ * An array of path tokens identifying the set of joints that make
13
+ * up the skeleton, and their order. Each token in the array must be valid
14
+ * when parsed as an SdfPath. The parent-child relationships of the
15
+ * corresponding paths determine the parent-child relationships of each
16
+ * joint. It is not required that the name at the end of each path be
17
+ * unique, but rather only that the paths themselves be unique.
18
+ *
19
+ * e.g. a skeleton of
20
+ *
21
+ * root -> spine05 -> spinge04
22
+ *
23
+ * will have it's joints listed as
24
+ *
25
+ * ["root", "root/spine05", "root/spine05/spine04"]
26
+ */
6
27
  set joints(value: string[] | undefined);
28
+ /**
29
+ * If authored, provides a unique name per joint. This may be
30
+ * optionally set to provide better names when translating to DCC apps
31
+ * that require unique joint names.
32
+ */
7
33
  set jointNames(value: string[] | undefined);
8
- set bindTransforms(value: number[] | undefined);
9
- set restTransforms(value: number[] | undefined);
10
- set blenderBoneLength(value: number[] | undefined);
34
+ /**
35
+ * Specifies the bind-pose transforms of each joint in
36
+ * **world space**, in the ordering imposed by _joints_.
37
+ */
38
+ set bindTransforms(value: ArrayLike<number> | undefined);
39
+ /**
40
+ * Specifies the rest-pose transforms of each joint in
41
+ * **local space**, in the ordering imposed by *joints*. This provides
42
+ * fallback values for joint transforms when a Skeleton either has no
43
+ * bound animation source, or when that animation source only contains
44
+ * animation for a subset of a Skeleton's joints.
45
+ */
46
+ set restTransforms(value: ArrayLike<number> | undefined);
47
+ set blenderBoneLength(value: ArrayLike<number> | undefined);
11
48
  }
@@ -3,6 +3,11 @@ import { SpecType } from "../../crate/SpecType";
3
3
  import { Variability } from "../../crate/Variability";
4
4
  import { Attribute } from "../attributes/Attribute";
5
5
  import { Boundable } from "../geometry/Boundable";
6
+ /**
7
+ * Describes a skeleton.
8
+ *
9
+ * defined in pxr/usd/usdSkel/schema.usda
10
+ */
6
11
  export class Skeleton extends Boundable {
7
12
  constructor(parent, name) {
8
13
  super(parent.crate, parent, -1, name, true);
@@ -16,6 +21,22 @@ export class Skeleton extends Boundable {
16
21
  prepend: ["SkelBindingAPI"]
17
22
  });
18
23
  }
24
+ /**
25
+ * An array of path tokens identifying the set of joints that make
26
+ * up the skeleton, and their order. Each token in the array must be valid
27
+ * when parsed as an SdfPath. The parent-child relationships of the
28
+ * corresponding paths determine the parent-child relationships of each
29
+ * joint. It is not required that the name at the end of each path be
30
+ * unique, but rather only that the paths themselves be unique.
31
+ *
32
+ * e.g. a skeleton of
33
+ *
34
+ * root -> spine05 -> spinge04
35
+ *
36
+ * will have it's joints listed as
37
+ *
38
+ * ["root", "root/spine05", "root/spine05/spine04"]
39
+ */
19
40
  set joints(value) {
20
41
  this.deleteChild("joints");
21
42
  if (value !== undefined) {
@@ -26,6 +47,11 @@ export class Skeleton extends Boundable {
26
47
  });
27
48
  }
28
49
  }
50
+ /**
51
+ * If authored, provides a unique name per joint. This may be
52
+ * optionally set to provide better names when translating to DCC apps
53
+ * that require unique joint names.
54
+ */
29
55
  set jointNames(value) {
30
56
  this.deleteChild("jointNames");
31
57
  if (value !== undefined) {
@@ -36,6 +62,10 @@ export class Skeleton extends Boundable {
36
62
  });
37
63
  }
38
64
  }
65
+ /**
66
+ * Specifies the bind-pose transforms of each joint in
67
+ * **world space**, in the ordering imposed by _joints_.
68
+ */
39
69
  set bindTransforms(value) {
40
70
  this.deleteChild("bindTransforms");
41
71
  if (value !== undefined) {
@@ -46,6 +76,13 @@ export class Skeleton extends Boundable {
46
76
  });
47
77
  }
48
78
  }
79
+ /**
80
+ * Specifies the rest-pose transforms of each joint in
81
+ * **local space**, in the ordering imposed by *joints*. This provides
82
+ * fallback values for joint transforms when a Skeleton either has no
83
+ * bound animation source, or when that animation source only contains
84
+ * animation for a subset of a Skeleton's joints.
85
+ */
49
86
  set restTransforms(value) {
50
87
  this.deleteChild("restTransforms");
51
88
  if (value !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/nodes/skeleton/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAOjD,MAAM,OAAO,QAAS,SAAQ,SAAS;IACnC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAA;IAC9B,CAAC;IAEQ,YAAY;QACjB,KAAK,CAAC,YAAY,EAAE,CAAA;QACpB,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE;YAC9B,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC,CAAA;IACN,CAAC;IAUD,IAAI,MAAM,CAAC,KAA2B;QAClC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;gBACnC,IAAI,CAAC,QAAQ,CAAC,UAAU,E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AAS,EAAE,KAAK,CAAC,CAAA;QACxC,CAAC,CAAC,CAAA;IACN,CAAC;CACJ"}
@@ -1,5 +1,5 @@
1
1
  import { Crate } from "../../crate/Crate";
2
- import { UsdNode } from "../../crate/UsdNode";
2
+ import { UsdNode } from "./UsdNode";
3
3
  export declare class PseudoRoot extends UsdNode {
4
4
  metersPerUnit?: number;
5
5
  documentation?: string;
@@ -1,6 +1,26 @@
1
1
  import { SpecType } from "../../crate/SpecType";
2
- import { UsdNode } from "../../crate/UsdNode";
2
+ import { UsdNode } from "./UsdNode";
3
+ // blender mesh options and how they map to usd
4
+ // shade: flat | smooth
5
+ // 'normals' are not per 'points' but 'faceVertexIndices'
6
+ // and the flat/smooth is encoded via those
7
+ // edge > mark sharp
8
+ // edge > mark seam (i guess this is for uv?)
9
+ // edge > bevel weight
10
+ // edge > edge crease
11
+ //
12
+ // materials
13
+ // multiple materials for one mesh
14
+ // via GeomSubset which lists the faces
15
+ // viewport display is not stored but taken from color itself during import
16
+ // armature, weights
17
+ // blendshape
18
+ // subdivision modifier becomes part of the Mesh... but might loose sharp edges (?)
3
19
  export class PseudoRoot extends UsdNode {
20
+ // timeCodesPerSecond = 24
21
+ // framesPerSecond = 12
22
+ // endTimeCode = 240
23
+ // startTimeCode = 1
4
24
  constructor(crate) {
5
25
  super(crate, undefined, -1, "/", true);
6
26
  this.metersPerUnit = 1;
@@ -1 +1 @@
1
- {"version":3,"file":"PseudoRoot.js","sourceRoot":"","sources":["../../../src/nodes/usd/PseudoRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAmB7C,MAAM,OAAO,UAAW,SAAQ,OAAO;IAMnC,YAAY,KAAY;QACpB,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,CAAA;QAN1C,kBAAa,GAAY,CAAC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