@markandre13/usd.js 0.0.5 → 0.0.7
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.
- package/README.md +10 -2
- package/dist/compression/compress.js +1 -1
- package/dist/compression/compress.js.map +1 -1
- package/dist/compression/integers.js +2 -0
- package/dist/compression/integers.js.map +1 -1
- package/dist/crate/BootStrap.d.ts +1 -1
- package/dist/crate/Crate.d.ts +14 -12
- package/dist/crate/Crate.js +38 -19
- package/dist/crate/Crate.js.map +1 -1
- package/dist/crate/CrateDataType.d.ts +1 -1
- package/dist/crate/CrateDataType.js +3 -0
- package/dist/crate/CrateDataType.js.map +1 -1
- package/dist/crate/Field.d.ts +4 -3
- package/dist/crate/Field.js +2 -2
- package/dist/crate/Field.js.map +1 -1
- package/dist/crate/FieldSets.d.ts +2 -2
- package/dist/crate/FieldSets.js +1 -0
- package/dist/crate/FieldSets.js.map +1 -1
- package/dist/crate/Fields.d.ts +27 -18
- package/dist/crate/Fields.js +243 -63
- package/dist/crate/Fields.js.map +1 -1
- package/dist/crate/Paths.d.ts +3 -3
- package/dist/crate/Reader.js +2 -2
- package/dist/crate/Reader.js.map +1 -1
- package/dist/crate/Section.d.ts +1 -1
- package/dist/crate/Specs.d.ts +3 -3
- package/dist/crate/Stage.js +1 -1
- package/dist/crate/Stage.js.map +1 -1
- package/dist/crate/Strings.d.ts +2 -2
- package/dist/crate/TableOfContents.d.ts +4 -4
- package/dist/crate/TableOfContents.js +1 -1
- package/dist/crate/TableOfContents.js.map +1 -1
- package/dist/crate/Tokens.d.ts +2 -2
- package/dist/crate/Tokens.js +2 -2
- package/dist/crate/Tokens.js.map +1 -1
- package/dist/crate/TypedTimeSamples.d.ts +5 -0
- package/dist/crate/TypedTimeSamples.js +2 -0
- package/dist/crate/TypedTimeSamples.js.map +1 -0
- package/dist/crate/ValueRep.d.ts +4 -4
- package/dist/crate/ValueRep.js +167 -16
- package/dist/crate/ValueRep.js.map +1 -1
- package/dist/crate/Writer.d.ts +3 -0
- package/dist/crate/Writer.js +19 -5
- package/dist/crate/Writer.js.map +1 -1
- package/dist/nodes/attributes/AssetPathAttr.js +1 -1
- package/dist/nodes/attributes/AssetPathAttr.js.map +1 -1
- package/dist/nodes/attributes/Attribute.d.ts +1 -1
- package/dist/nodes/attributes/Attribute.js +2 -2
- package/dist/nodes/attributes/Attribute.js.map +1 -1
- package/dist/nodes/attributes/BooleanAttr.d.ts +2 -2
- package/dist/nodes/attributes/BooleanAttr.js +2 -2
- package/dist/nodes/attributes/BooleanAttr.js.map +1 -1
- package/dist/nodes/attributes/Color3fAttr.d.ts +1 -1
- package/dist/nodes/attributes/Color3fAttr.js +2 -2
- package/dist/nodes/attributes/Color3fAttr.js.map +1 -1
- package/dist/nodes/attributes/FloatArrayAttr.d.ts +6 -0
- package/dist/nodes/attributes/FloatArrayAttr.js +18 -0
- package/dist/nodes/attributes/FloatArrayAttr.js.map +1 -0
- package/dist/nodes/attributes/FloatAttr.d.ts +1 -1
- package/dist/nodes/attributes/FloatAttr.js +2 -2
- package/dist/nodes/attributes/FloatAttr.js.map +1 -1
- package/dist/nodes/attributes/IntArrayAttr.d.ts +4 -2
- package/dist/nodes/attributes/IntArrayAttr.js +7 -3
- package/dist/nodes/attributes/IntArrayAttr.js.map +1 -1
- package/dist/nodes/attributes/Relationship.d.ts +2 -2
- package/dist/nodes/attributes/Relationship.js +3 -3
- package/dist/nodes/attributes/Relationship.js.map +1 -1
- package/dist/nodes/attributes/StringAttr.d.ts +1 -1
- package/dist/nodes/attributes/StringAttr.js +2 -2
- package/dist/nodes/attributes/StringAttr.js.map +1 -1
- package/dist/nodes/attributes/TokenAttr.d.ts +4 -4
- package/dist/nodes/attributes/TokenAttr.js +14 -4
- package/dist/nodes/attributes/TokenAttr.js.map +1 -1
- package/dist/nodes/attributes/VariabilityAttr.d.ts +2 -2
- package/dist/nodes/attributes/VariabilityAttr.js +2 -2
- package/dist/nodes/attributes/VariabilityAttr.js.map +1 -1
- package/dist/nodes/attributes/Vec2fArrayAttr.d.ts +2 -2
- package/dist/nodes/attributes/Vec2fArrayAttr.js +2 -2
- package/dist/nodes/attributes/Vec2fArrayAttr.js.map +1 -1
- package/dist/nodes/attributes/Vec3fArrayAttr.d.ts +4 -2
- package/dist/nodes/attributes/Vec3fArrayAttr.js +7 -3
- package/dist/nodes/attributes/Vec3fArrayAttr.js.map +1 -1
- package/dist/nodes/geometry/Boundable.d.ts +1 -1
- package/dist/nodes/geometry/Boundable.js +2 -2
- package/dist/nodes/geometry/Boundable.js.map +1 -1
- package/dist/nodes/geometry/Camera.d.ts +2 -2
- package/dist/nodes/geometry/Camera.js +5 -5
- package/dist/nodes/geometry/Camera.js.map +1 -1
- package/dist/nodes/geometry/GeomSubset.d.ts +67 -2
- package/dist/nodes/geometry/GeomSubset.js +103 -10
- package/dist/nodes/geometry/GeomSubset.js.map +1 -1
- package/dist/nodes/geometry/Gprim.d.ts +1 -1
- package/dist/nodes/geometry/Gprim.js +3 -3
- package/dist/nodes/geometry/Gprim.js.map +1 -1
- package/dist/nodes/geometry/Imageable.d.ts +1 -1
- package/dist/nodes/geometry/Imageable.js +1 -1
- package/dist/nodes/geometry/Imageable.js.map +1 -1
- package/dist/nodes/geometry/Mesh.d.ts +11 -7
- package/dist/nodes/geometry/Mesh.js +39 -15
- package/dist/nodes/geometry/Mesh.js.map +1 -1
- package/dist/nodes/geometry/PointBased.d.ts +2 -1
- package/dist/nodes/geometry/PointBased.js +15 -3
- package/dist/nodes/geometry/PointBased.js.map +1 -1
- package/dist/nodes/geometry/Scope.d.ts +3 -2
- package/dist/nodes/geometry/Scope.js +7 -3
- package/dist/nodes/geometry/Scope.js.map +1 -1
- package/dist/nodes/geometry/SkelBindingAPI.d.ts +20 -3
- package/dist/nodes/geometry/Xform.d.ts +2 -2
- package/dist/nodes/geometry/Xform.js +3 -3
- package/dist/nodes/geometry/Xform.js.map +1 -1
- package/dist/nodes/geometry/Xformable.d.ts +7 -4
- package/dist/nodes/geometry/Xformable.js +50 -14
- package/dist/nodes/geometry/Xformable.js.map +1 -1
- package/dist/nodes/lux/BoundableLightBase.d.ts +1 -1
- package/dist/nodes/lux/BoundableLightBase.js +3 -3
- package/dist/nodes/lux/BoundableLightBase.js.map +1 -1
- package/dist/nodes/lux/DomeLight.d.ts +6 -2
- package/dist/nodes/lux/DomeLight.js +35 -4
- package/dist/nodes/lux/DomeLight.js.map +1 -1
- package/dist/nodes/lux/NonboundableLightBase.d.ts +1 -1
- package/dist/nodes/lux/NonboundableLightBase.js +2 -2
- package/dist/nodes/lux/NonboundableLightBase.js.map +1 -1
- package/dist/nodes/lux/SphereLight.d.ts +2 -2
- package/dist/nodes/lux/SphereLight.js +4 -4
- package/dist/nodes/lux/SphereLight.js.map +1 -1
- package/dist/nodes/shader/Material.d.ts +3 -2
- package/dist/nodes/shader/Material.js +17 -4
- package/dist/nodes/shader/Material.js.map +1 -1
- package/dist/nodes/shader/NodeGraph.d.ts +1 -1
- package/dist/nodes/shader/NodeGraph.js +1 -1
- package/dist/nodes/shader/NodeGraph.js.map +1 -1
- package/dist/nodes/shader/Shader.d.ts +2 -2
- package/dist/nodes/shader/Shader.js +4 -4
- package/dist/nodes/shader/Shader.js.map +1 -1
- package/dist/nodes/shader/blender/ImageTexture.d.ts +12 -0
- package/dist/nodes/shader/blender/ImageTexture.js +59 -0
- package/dist/nodes/shader/blender/ImageTexture.js.map +1 -0
- package/dist/nodes/shader/blender/PrincipledBSDF.d.ts +14 -0
- package/dist/nodes/shader/blender/PrincipledBSDF.js +82 -0
- package/dist/nodes/shader/blender/PrincipledBSDF.js.map +1 -0
- package/dist/nodes/shader/blender/UVMap.d.ts +9 -0
- package/dist/nodes/shader/blender/UVMap.js +32 -0
- package/dist/nodes/shader/blender/UVMap.js.map +1 -0
- package/dist/nodes/skeleton/BlendShape.d.ts +21 -0
- package/dist/nodes/skeleton/BlendShape.js +46 -0
- package/dist/nodes/skeleton/BlendShape.js.map +1 -0
- package/dist/nodes/skeleton/SkelAnimation.d.ts +51 -0
- package/dist/nodes/skeleton/SkelAnimation.js +133 -0
- package/dist/nodes/skeleton/SkelAnimation.js.map +1 -0
- package/dist/nodes/skeleton/SkelRoot.d.ts +7 -3
- package/dist/nodes/skeleton/SkelRoot.js +8 -4
- package/dist/nodes/skeleton/SkelRoot.js.map +1 -1
- package/dist/nodes/skeleton/Skeleton.d.ts +13 -2
- package/dist/nodes/skeleton/Skeleton.js +24 -7
- package/dist/nodes/skeleton/Skeleton.js.map +1 -1
- package/dist/nodes/usd/PseudoRoot.d.ts +5 -2
- package/dist/nodes/usd/PseudoRoot.js +5 -2
- package/dist/nodes/usd/PseudoRoot.js.map +1 -1
- package/dist/nodes/usd/SchemaBase.d.ts +1 -1
- package/dist/nodes/usd/SchemaBase.js +1 -1
- package/dist/nodes/usd/SchemaBase.js.map +1 -1
- package/dist/nodes/usd/Typed.d.ts +2 -2
- package/dist/nodes/usd/Typed.js +1 -1
- package/dist/nodes/usd/Typed.js.map +1 -1
- package/dist/nodes/usd/UsdNode.d.ts +19 -6
- package/dist/nodes/usd/UsdNode.js +68 -2
- package/dist/nodes/usd/UsdNode.js.map +1 -1
- package/dist/types/ListOp.d.ts +29 -0
- package/dist/types/ListOp.js +22 -0
- package/dist/types/ListOp.js.map +1 -0
- package/dist/types/TimeSamples.d.ts +4 -0
- package/dist/types/TimeSamples.js +2 -0
- package/dist/types/TimeSamples.js.map +1 -0
- package/package.json +4 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ListOp } from "../../
|
|
2
|
-
import type { UsdNode } from "../usd/UsdNode";
|
|
3
|
-
import
|
|
4
|
-
import { PointBased, SubdivisionScheme } from "./PointBased";
|
|
5
|
-
import { SkelBindingAPI } from "./SkelBindingAPI";
|
|
1
|
+
import type { ListOp } from "../../types/ListOp.js";
|
|
2
|
+
import type { UsdNode } from "../usd/UsdNode.js";
|
|
3
|
+
import { Skeleton } from "../skeleton/Skeleton.js";
|
|
4
|
+
import { PointBased, SubdivisionScheme } from "./PointBased.js";
|
|
5
|
+
import { SkelBindingAPI } from "./SkelBindingAPI.js";
|
|
6
|
+
import { BlendShape } from "../skeleton/BlendShape.js";
|
|
6
7
|
/**
|
|
7
8
|
* Encodes a mesh with optional subdivision properties and features.
|
|
8
9
|
*
|
|
@@ -32,10 +33,11 @@ import { SkelBindingAPI } from "./SkelBindingAPI";
|
|
|
32
33
|
* [OpenSubdiv](https://graphics.pixar.com/opensubdiv/docs/subdivision_surfaces.html).
|
|
33
34
|
*/
|
|
34
35
|
export declare class Mesh extends PointBased implements SkelBindingAPI {
|
|
36
|
+
active?: boolean;
|
|
35
37
|
constructor(parent: UsdNode, name: string);
|
|
36
38
|
encodeFields(): void;
|
|
37
39
|
private apiSchemas?;
|
|
38
|
-
|
|
40
|
+
private prependApiSchema;
|
|
39
41
|
set blenderDataName(value: string | undefined);
|
|
40
42
|
/**
|
|
41
43
|
* Flat list of the index (into the _points_ attribute) of each
|
|
@@ -74,7 +76,7 @@ export declare class Mesh extends PointBased implements SkelBindingAPI {
|
|
|
74
76
|
set subdivisionScheme(value: SubdivisionScheme | undefined);
|
|
75
77
|
set materialBinding(value: ListOp<UsdNode> | undefined);
|
|
76
78
|
set familyType(value: "partition" | "nonOverlapping" | "unrestricted" | undefined);
|
|
77
|
-
set skeleton(value: Skeleton | undefined);
|
|
79
|
+
set skeleton(value: Skeleton | ListOp<Skeleton> | undefined);
|
|
78
80
|
set geomBindTransform(value: ArrayLike<number> | undefined);
|
|
79
81
|
set jointIndices(value: {
|
|
80
82
|
elementSize: number;
|
|
@@ -84,4 +86,6 @@ export declare class Mesh extends PointBased implements SkelBindingAPI {
|
|
|
84
86
|
elementSize: number;
|
|
85
87
|
indices: ArrayLike<number>;
|
|
86
88
|
} | undefined);
|
|
89
|
+
set blendShapes(value: string[] | undefined);
|
|
90
|
+
set blendShapeTargets(value: BlendShape[] | undefined);
|
|
87
91
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { Specifier } from "../../crate/Specifier";
|
|
2
|
-
import { SpecType } from "../../crate/SpecType";
|
|
3
|
-
import { Variability } from "../../crate/Variability";
|
|
4
|
-
import { Attribute } from "../attributes/Attribute";
|
|
5
|
-
import { IntArrayAttr } from "../attributes/IntArrayAttr";
|
|
6
|
-
import { VariabilityAttr } from "../attributes/VariabilityAttr";
|
|
7
|
-
import { Relationship } from "../attributes/Relationship";
|
|
8
|
-
import { StringAttr } from "../attributes/StringAttr";
|
|
9
|
-
import {
|
|
1
|
+
import { Specifier } from "../../crate/Specifier.js";
|
|
2
|
+
import { SpecType } from "../../crate/SpecType.js";
|
|
3
|
+
import { Variability } from "../../crate/Variability.js";
|
|
4
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
5
|
+
import { IntArrayAttr } from "../attributes/IntArrayAttr.js";
|
|
6
|
+
import { VariabilityAttr } from "../attributes/VariabilityAttr.js";
|
|
7
|
+
import { Relationship } from "../attributes/Relationship.js";
|
|
8
|
+
import { StringAttr } from "../attributes/StringAttr.js";
|
|
9
|
+
import { Skeleton } from "../skeleton/Skeleton.js";
|
|
10
|
+
import { PointBased } from "./PointBased.js";
|
|
11
|
+
import { TokenAttr } from "../attributes/TokenAttr.js";
|
|
10
12
|
/**
|
|
11
13
|
* Encodes a mesh with optional subdivision properties and features.
|
|
12
14
|
*
|
|
@@ -38,6 +40,7 @@ import { PointBased } from "./PointBased";
|
|
|
38
40
|
export class Mesh extends PointBased {
|
|
39
41
|
constructor(parent, name) {
|
|
40
42
|
super(parent.crate, parent, -1, name, true);
|
|
43
|
+
this.active = true;
|
|
41
44
|
this.spec_type = SpecType.Prim;
|
|
42
45
|
this.specifier = Specifier.Def;
|
|
43
46
|
this.typeName = "Mesh";
|
|
@@ -45,7 +48,7 @@ export class Mesh extends PointBased {
|
|
|
45
48
|
encodeFields() {
|
|
46
49
|
super.encodeFields();
|
|
47
50
|
this.setTokenListOp("apiSchemas", this.apiSchemas);
|
|
48
|
-
this.setBoolean("active",
|
|
51
|
+
this.setBoolean("active", this.active);
|
|
49
52
|
}
|
|
50
53
|
prependApiSchema(name) {
|
|
51
54
|
if (this.apiSchemas === undefined) {
|
|
@@ -134,10 +137,11 @@ export class Mesh extends PointBased {
|
|
|
134
137
|
// pxr/usd/usdShade/schema.usda
|
|
135
138
|
set materialBinding(value) {
|
|
136
139
|
this.deleteChild("material:binding");
|
|
137
|
-
if (value
|
|
138
|
-
|
|
139
|
-
new Relationship(this, "material:binding", value);
|
|
140
|
+
if (value === undefined) {
|
|
141
|
+
return;
|
|
140
142
|
}
|
|
143
|
+
this.prependApiSchema("MaterialBindingAPI");
|
|
144
|
+
new Relationship(this, "material:binding", value);
|
|
141
145
|
}
|
|
142
146
|
//
|
|
143
147
|
// GeomSubset
|
|
@@ -153,13 +157,18 @@ export class Mesh extends PointBased {
|
|
|
153
157
|
//
|
|
154
158
|
set skeleton(value) {
|
|
155
159
|
this.deleteChild("skel:skeleton");
|
|
156
|
-
if (value
|
|
157
|
-
|
|
160
|
+
if (value === undefined) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.prependApiSchema("SkelBindingAPI");
|
|
164
|
+
if (value instanceof Skeleton) {
|
|
158
165
|
new Relationship(this, "skel:skeleton", {
|
|
159
166
|
isExplicit: true,
|
|
160
167
|
explicit: [value]
|
|
161
168
|
});
|
|
169
|
+
return;
|
|
162
170
|
}
|
|
171
|
+
new Relationship(this, "skel:skeleton", value);
|
|
163
172
|
}
|
|
164
173
|
set geomBindTransform(value) {
|
|
165
174
|
this.deleteChild("primvars:skel:geomBindTransform");
|
|
@@ -195,5 +204,20 @@ export class Mesh extends PointBased {
|
|
|
195
204
|
});
|
|
196
205
|
}
|
|
197
206
|
}
|
|
207
|
+
set blendShapes(value) {
|
|
208
|
+
this.deleteChild("skel:blendShapes");
|
|
209
|
+
if (value !== undefined) {
|
|
210
|
+
new TokenAttr(this, "skel:blendShapes", Variability.Uniform, value);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
set blendShapeTargets(value) {
|
|
214
|
+
this.deleteChild("skel:blendShapeTargets");
|
|
215
|
+
if (value !== undefined) {
|
|
216
|
+
new Relationship(this, "skel:blendShapeTargets", {
|
|
217
|
+
isExplicit: true,
|
|
218
|
+
explicit: value
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
198
222
|
}
|
|
199
223
|
//# sourceMappingURL=Mesh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mesh.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Mesh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Mesh.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Mesh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,UAAU,EAAqB,MAAM,iBAAiB,CAAA;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU;IAGhC,YAAY,MAAe,EAAE,IAAY;QACrC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC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AAI,EAAE,kBAAkB,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACvE,CAAC;IACL,CAAC;IAED,IAAI,iBAAiB,CAAC,KAA+B;QACjD,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAA;QAC1C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,YAAY,CAAC,IAAI,EAAE,wBAAwB,EAAE;gBAC7C,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,KAAK;aAClB,CAAC,CAAA;QACN,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gprim } from "./Gprim";
|
|
1
|
+
import { Gprim } from "./Gprim.js";
|
|
2
2
|
export type SubdivisionScheme = "catmullClark" | "loop" | "bilinear" | "none";
|
|
3
3
|
export type InterpolateBoundary = "none" | "edgeOnly" | "edgeAndCorner";
|
|
4
4
|
export type FaceVaryingLinearInterpolation = "none" | "cornersOnly" | "cornersPlus1" | "cornersPlus2" | "boundaries" | "all";
|
|
@@ -24,6 +24,7 @@ export declare class PointBased extends Gprim {
|
|
|
24
24
|
*/
|
|
25
25
|
set normals(value: ArrayLike<number> | undefined);
|
|
26
26
|
set texCoords(value: ArrayLike<number> | undefined);
|
|
27
|
+
set texIndices(value: ArrayLike<number> | undefined);
|
|
27
28
|
interpolateBoundary: InterpolateBoundary;
|
|
28
29
|
faceVaryingLinearInterpolation: FaceVaryingLinearInterpolation;
|
|
29
30
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Vec2fArrayAttr } from "../attributes/Vec2fArrayAttr";
|
|
2
|
-
import { Vec3fArrayAttr } from "../attributes/Vec3fArrayAttr";
|
|
3
|
-
import { Gprim } from "./Gprim";
|
|
1
|
+
import { Vec2fArrayAttr } from "../attributes/Vec2fArrayAttr.js";
|
|
2
|
+
import { Vec3fArrayAttr } from "../attributes/Vec3fArrayAttr.js";
|
|
3
|
+
import { Gprim } from "./Gprim.js";
|
|
4
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
4
5
|
/**
|
|
5
6
|
* Base class for all UsdGeomGprims that possess points,
|
|
6
7
|
* providing common attributes such as normals and velocities.
|
|
@@ -47,5 +48,16 @@ export class PointBased extends Gprim {
|
|
|
47
48
|
attr.interpolation = "faceVarying";
|
|
48
49
|
}
|
|
49
50
|
}
|
|
51
|
+
set texIndices(value) {
|
|
52
|
+
this.deleteChild("primvars:st:indices");
|
|
53
|
+
if (value !== undefined) {
|
|
54
|
+
new Attribute(this, "primvars:st:indices", (node) => {
|
|
55
|
+
node.setToken("typeName", "int[]");
|
|
56
|
+
node.setIntArray("default", value);
|
|
57
|
+
});
|
|
58
|
+
// const attr = new Vec2fArrayAttr(this.crate, this, "primvars:st:indices", value, "texCoord2f[]")
|
|
59
|
+
// attr.interpolation = "faceVarying"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
50
62
|
}
|
|
51
63
|
//# sourceMappingURL=PointBased.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointBased.js","sourceRoot":"","sources":["../../../src/nodes/geometry/PointBased.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PointBased.js","sourceRoot":"","sources":["../../../src/nodes/geometry/PointBased.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAetD;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IAArC;;QAgDI,wBAAmB,GAAwB,eAAe,CAAC;QAC3D,mCAA8B,GAAmC,cAAc,CAAC;IACpF,CAAC;IAjDG;;;OAGG;IACH,IAAI,MAAM,CAAC,KA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L,CAAC;CAGJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UsdNode } from "../usd/UsdNode";
|
|
2
|
-
import { Imageable } from "./Imageable";
|
|
1
|
+
import type { UsdNode } from "../usd/UsdNode.js";
|
|
2
|
+
import { Imageable } from "./Imageable.js";
|
|
3
3
|
/**
|
|
4
4
|
* Scope is the simplest grouping primitive, and does not carry the
|
|
5
5
|
* baggage of transformability. Note that transforms should inherit down
|
|
@@ -10,4 +10,5 @@ import { Imageable } from "./Imageable";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class Scope extends Imageable {
|
|
12
12
|
constructor(parent: UsdNode, name: string);
|
|
13
|
+
set blenderObjectName(value: string | undefined);
|
|
13
14
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Specifier } from "../../crate/Specifier";
|
|
2
|
-
import { SpecType } from "../../crate/SpecType";
|
|
3
|
-
import { Imageable } from "./Imageable";
|
|
1
|
+
import { Specifier } from "../../crate/Specifier.js";
|
|
2
|
+
import { SpecType } from "../../crate/SpecType.js";
|
|
3
|
+
import { Imageable } from "./Imageable.js";
|
|
4
|
+
import { Xformable } from "./Xformable.js";
|
|
4
5
|
/**
|
|
5
6
|
* Scope is the simplest grouping primitive, and does not carry the
|
|
6
7
|
* baggage of transformability. Note that transforms should inherit down
|
|
@@ -16,5 +17,8 @@ export class Scope extends Imageable {
|
|
|
16
17
|
this.specifier = Specifier.Def;
|
|
17
18
|
this.typeName = "Scope";
|
|
18
19
|
}
|
|
20
|
+
set blenderObjectName(value) {
|
|
21
|
+
Xformable._blenderObjectName(this, value);
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=Scope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;;;;;;GAOG;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;IACD,IAAI,iBAAiB,CAAC,KAAyB;QAC3C,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC7C,CAAC;CACJ"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ListOp } from "../../types/ListOp.js";
|
|
2
|
+
import { BlendShape } from "../skeleton/BlendShape.js";
|
|
3
|
+
import type { Skeleton } from "../skeleton/Skeleton.js";
|
|
2
4
|
/**
|
|
3
5
|
* Provides API for authoring and extracting all the skinning-related
|
|
4
6
|
* data that lives in the "geometry hierarchy" of prims and models that want
|
|
@@ -10,7 +12,7 @@ export interface SkelBindingAPI {
|
|
|
10
12
|
* possess a mapping and weighting to the joints of the identified
|
|
11
13
|
* Skeleton.
|
|
12
14
|
*/
|
|
13
|
-
set skeleton(value: Skeleton | undefined);
|
|
15
|
+
set skeleton(value: Skeleton | ListOp<Skeleton> | undefined);
|
|
14
16
|
/**
|
|
15
17
|
* Encodes the bind-time world space transforms of the prim.
|
|
16
18
|
* If the transform is identical for a group of gprims that share a common
|
|
@@ -29,7 +31,7 @@ export interface SkelBindingAPI {
|
|
|
29
31
|
* apply to each point. Indices must point be valid. Null influences should
|
|
30
32
|
* be defined by setting values in jointWeights to zero.
|
|
31
33
|
*
|
|
32
|
-
* [ point0 -> (
|
|
34
|
+
* [ point0 -> (joint_0, ..., joint_elementSize), ...]
|
|
33
35
|
*/
|
|
34
36
|
set jointIndices(value: {
|
|
35
37
|
elementSize: number;
|
|
@@ -50,4 +52,19 @@ export interface SkelBindingAPI {
|
|
|
50
52
|
elementSize: number;
|
|
51
53
|
indices: ArrayLike<number>;
|
|
52
54
|
} | undefined);
|
|
55
|
+
/**
|
|
56
|
+
* An array of tokens defining the order onto which blend shape
|
|
57
|
+
* weights from an animation source map onto the *skel:blendShapeTargets*
|
|
58
|
+
* rel of a binding site. If authored, the number of elements must be equal
|
|
59
|
+
* to the number of targets in the _blendShapeTargets_ rel. This property
|
|
60
|
+
* is not inherited hierarchically, and is expected to be authored directly
|
|
61
|
+
* on the skinnable primitive to which the blend shapes apply.
|
|
62
|
+
*/
|
|
63
|
+
set blendShapes(value: string[] | undefined);
|
|
64
|
+
/**
|
|
65
|
+
* Ordered list of all target blend shapes. This property is not
|
|
66
|
+
* inherited hierarchically, and is expected to be authored directly on
|
|
67
|
+
* the skinnable primitive to which the the blend shapes apply.
|
|
68
|
+
*/
|
|
69
|
+
set blendShapeTargets(value: BlendShape[] | undefined);
|
|
53
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Specifier } from "../../crate/Specifier";
|
|
2
|
-
import { SpecType } from "../../crate/SpecType";
|
|
3
|
-
import { Xformable } from "./Xformable";
|
|
1
|
+
import { Specifier } from "../../crate/Specifier.js";
|
|
2
|
+
import { SpecType } from "../../crate/SpecType.js";
|
|
3
|
+
import { Xformable } from "./Xformable.js";
|
|
4
4
|
/**
|
|
5
5
|
* Concrete prim schema for a transform, which implements Xformable
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xform.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Xform.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;;;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,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TimeSamples } from "../../types/TimeSamples.js";
|
|
2
|
+
import { UsdNode } from "../usd/UsdNode.js";
|
|
3
|
+
import { Imageable } from "./Imageable.js";
|
|
2
4
|
/**
|
|
3
5
|
* Base class for all transformable prims, which allows arbitrary
|
|
4
6
|
* sequences of component affine transformations to be encoded.
|
|
@@ -9,8 +11,9 @@ export declare abstract class Xformable extends Imageable {
|
|
|
9
11
|
customData?: any;
|
|
10
12
|
encodeFields(): void;
|
|
11
13
|
set blenderObjectName(value: string | undefined);
|
|
12
|
-
|
|
13
|
-
set
|
|
14
|
-
set
|
|
14
|
+
static _blenderObjectName(node: UsdNode, value: string | undefined): void;
|
|
15
|
+
set rotateXYZ(value: ArrayLike<number> | TimeSamples | undefined);
|
|
16
|
+
set scale(value: ArrayLike<number> | TimeSamples | undefined);
|
|
17
|
+
set translate(value: ArrayLike<number> | TimeSamples | undefined);
|
|
15
18
|
set xformOrder(value: ("xformOp:translate" | "xformOp:rotateXYZ" | "xformOp:scale")[] | undefined);
|
|
16
19
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { CrateDataType } from "../../crate/CrateDataType.js";
|
|
2
|
+
import { Variability } from "../../crate/Variability.js";
|
|
3
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
4
|
+
import { StringAttr } from "../attributes/StringAttr.js";
|
|
5
|
+
import { Imageable } from "./Imageable.js";
|
|
5
6
|
/**
|
|
6
7
|
* Base class for all transformable prims, which allows arbitrary
|
|
7
8
|
* sequences of component affine transformations to be encoded.
|
|
@@ -14,30 +15,65 @@ export class Xformable extends Imageable {
|
|
|
14
15
|
this.setCustomData("customData", this.customData);
|
|
15
16
|
}
|
|
16
17
|
set blenderObjectName(value) {
|
|
17
|
-
|
|
18
|
+
Xformable._blenderObjectName(this, value);
|
|
19
|
+
}
|
|
20
|
+
static _blenderObjectName(node, value) {
|
|
21
|
+
node.deleteChild("userProperties:blender:object_name");
|
|
18
22
|
if (value !== undefined) {
|
|
19
|
-
new StringAttr(
|
|
23
|
+
new StringAttr(node, "userProperties:blender:object_name", value, { custom: true });
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
set rotateXYZ(value) {
|
|
23
27
|
this.deleteChild("xformOp:rotateXYZ");
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
if (value !== undefined) {
|
|
29
|
+
new Attribute(this, "xformOp:rotateXYZ", (node) => {
|
|
30
|
+
if (Array.isArray(value)) {
|
|
31
|
+
node.setToken("typeName", "float3");
|
|
32
|
+
node.setVec3f("default", value);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
node.setToken("typeName", "float3");
|
|
36
|
+
const ts = value;
|
|
37
|
+
node.setTimeSamples("timeSamples", {
|
|
38
|
+
...ts,
|
|
39
|
+
sampleType: CrateDataType.Vec3f
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
28
44
|
}
|
|
29
45
|
set scale(value) {
|
|
30
46
|
this.deleteChild("xformOp:scale");
|
|
31
47
|
new Attribute(this, "xformOp:scale", (node) => {
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
if (Array.isArray(value)) {
|
|
49
|
+
node.setToken("typeName", "float3");
|
|
50
|
+
node.setVec3f("default", value);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
node.setToken("typeName", "float3");
|
|
54
|
+
const ts = value;
|
|
55
|
+
node.setTimeSamples("timeSamples", {
|
|
56
|
+
...ts,
|
|
57
|
+
sampleType: CrateDataType.Vec3f
|
|
58
|
+
});
|
|
59
|
+
}
|
|
34
60
|
});
|
|
35
61
|
}
|
|
36
62
|
set translate(value) {
|
|
37
63
|
this.deleteChild("xformOp:translate");
|
|
38
64
|
new Attribute(this, "xformOp:translate", (node) => {
|
|
39
|
-
|
|
40
|
-
|
|
65
|
+
if (Array.isArray(value)) {
|
|
66
|
+
node.setToken("typeName", "double3");
|
|
67
|
+
node.setVec3d("default", value);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
node.setToken("typeName", "double3");
|
|
71
|
+
const ts = value;
|
|
72
|
+
node.setTimeSamples("timeSamples", {
|
|
73
|
+
...ts,
|
|
74
|
+
sampleType: CrateDataType.Vec3d
|
|
75
|
+
});
|
|
76
|
+
}
|
|
41
77
|
});
|
|
42
78
|
}
|
|
43
79
|
set xformOrder(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xformable.js","sourceRoot":"","sources":["../../../src/nodes/geometry/Xformable.ts"],"names":[],"mappings":"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C,KAAK,CAAC,EAAE,CAAC;gBACvB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;gBACpC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;YACnC,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;gBACpC,MAAM,EAAE,GAAG,KAAoB,CAAA;gBAC/B,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE;oBAC/B,GAAG,EAAE;oBACL,UAAU,EAAE,aAAa,CAAC,KAAK;iBAClC,CAAC,CAAA;YACN,CAAC;QACL,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,6 +1,6 @@
|
|
|
1
|
-
import { Attribute } from "../attributes/Attribute";
|
|
2
|
-
import { StringAttr } from "../attributes/StringAttr";
|
|
3
|
-
import { Boundable } from "../geometry/Boundable";
|
|
1
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
2
|
+
import { StringAttr } from "../attributes/StringAttr.js";
|
|
3
|
+
import { Boundable } from "../geometry/Boundable.js";
|
|
4
4
|
/**
|
|
5
5
|
* Base class for intrinsic lights that are boundable.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/BoundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO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,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;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,5 @@
|
|
|
1
|
-
import type { UsdNode } from "../usd/UsdNode";
|
|
2
|
-
import { NonboundableLightBase } from "./NonboundableLightBase";
|
|
1
|
+
import type { UsdNode } from "../usd/UsdNode.js";
|
|
2
|
+
import { NonboundableLightBase } from "./NonboundableLightBase.js";
|
|
3
3
|
/**
|
|
4
4
|
* Light emitted inward from a distant external environment,
|
|
5
5
|
* such as a sky or IBL light probe.
|
|
@@ -14,4 +14,8 @@ export declare class DomeLight extends NonboundableLightBase {
|
|
|
14
14
|
constructor(parent: UsdNode, name: string);
|
|
15
15
|
encodeFields(): void;
|
|
16
16
|
set textureFile(value: string | undefined);
|
|
17
|
+
set rotateXYZ(value: ArrayLike<number> | undefined);
|
|
18
|
+
set scale(value: ArrayLike<number> | undefined);
|
|
19
|
+
set translate(value: ArrayLike<number> | undefined);
|
|
20
|
+
set xformOrder(value: ("xformOp:translate" | "xformOp:rotateXYZ" | "xformOp:scale")[] | undefined);
|
|
17
21
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Specifier } from "../../crate/Specifier";
|
|
2
|
-
import { SpecType } from "../../crate/SpecType";
|
|
3
|
-
import { AssetPathAttr } from "../attributes/AssetPathAttr";
|
|
4
|
-
import { NonboundableLightBase } from "./NonboundableLightBase";
|
|
1
|
+
import { Specifier } from "../../crate/Specifier.js";
|
|
2
|
+
import { SpecType } from "../../crate/SpecType.js";
|
|
3
|
+
import { AssetPathAttr } from "../attributes/AssetPathAttr.js";
|
|
4
|
+
import { NonboundableLightBase } from "./NonboundableLightBase.js";
|
|
5
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
6
|
+
import { Variability } from "../../crate/Variability.js";
|
|
5
7
|
/**
|
|
6
8
|
* Light emitted inward from a distant external environment,
|
|
7
9
|
* such as a sky or IBL light probe.
|
|
@@ -29,5 +31,34 @@ export class DomeLight extends NonboundableLightBase {
|
|
|
29
31
|
new AssetPathAttr(this, "inputs:texture:file", value);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
34
|
+
// copied from Xformable
|
|
35
|
+
set rotateXYZ(value) {
|
|
36
|
+
this.deleteChild("xformOp:rotateXYZ");
|
|
37
|
+
new Attribute(this, "xformOp:rotateXYZ", (node) => {
|
|
38
|
+
node.setToken("typeName", "float3");
|
|
39
|
+
node.setVec3f("default", value);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
set scale(value) {
|
|
43
|
+
this.deleteChild("xformOp:scale");
|
|
44
|
+
new Attribute(this, "xformOp:scale", (node) => {
|
|
45
|
+
node.setToken("typeName", "float3");
|
|
46
|
+
node.setVec3f("default", value);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
set translate(value) {
|
|
50
|
+
this.deleteChild("xformOp:translate");
|
|
51
|
+
new Attribute(this, "xformOp:translate", (node) => {
|
|
52
|
+
node.setToken("typeName", "double3");
|
|
53
|
+
node.setVec3d("default", value);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
set xformOrder(value) {
|
|
57
|
+
new Attribute(this, "xformOpOrder", (node) => {
|
|
58
|
+
node.setToken("typeName", "token[]");
|
|
59
|
+
node.setVariability("variability", Variability.Uniform);
|
|
60
|
+
node.setTokenArray("default", value);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
32
63
|
}
|
|
33
64
|
//# sourceMappingURL=DomeLight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DomeLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/DomeLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DomeLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/DomeLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD;;;;;;;;;GASG;AACH,MAAM,OAAO,SAAU,SAAQ,qBAAqB;IAChD,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;IAClC,CAAC;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,W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kF;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;CAGJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UsdNode } from "../usd/UsdNode";
|
|
2
|
-
import { Attribute } from "../attributes/Attribute";
|
|
1
|
+
import { UsdNode } from "../usd/UsdNode.js";
|
|
2
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
3
3
|
export class NonboundableLightBase extends UsdNode {
|
|
4
4
|
// set enableColorTemperature(value: boolean | undefined) {
|
|
5
5
|
// this.deleteChild("inputs:enableColorTemperature")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NonboundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/NonboundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"NonboundableLightBase.js","sourceRoot":"","sources":["../../../src/nodes/lux/NonboundableLightBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,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,5 +1,5 @@
|
|
|
1
|
-
import type { UsdNode } from "../usd/UsdNode";
|
|
2
|
-
import { BoundableLightBase } from "./BoundableLightBase";
|
|
1
|
+
import type { UsdNode } from "../usd/UsdNode.js";
|
|
2
|
+
import { BoundableLightBase } from "./BoundableLightBase.js";
|
|
3
3
|
/**
|
|
4
4
|
* Light emitted outward from a sphere.
|
|
5
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Specifier } from "../../crate/Specifier";
|
|
2
|
-
import { SpecType } from "../../crate/SpecType";
|
|
3
|
-
import { Attribute } from "../attributes/Attribute";
|
|
4
|
-
import { BoundableLightBase } from "./BoundableLightBase";
|
|
1
|
+
import { Specifier } from "../../crate/Specifier.js";
|
|
2
|
+
import { SpecType } from "../../crate/SpecType.js";
|
|
3
|
+
import { Attribute } from "../attributes/Attribute.js";
|
|
4
|
+
import { BoundableLightBase } from "./BoundableLightBase.js";
|
|
5
5
|
/**
|
|
6
6
|
* Light emitted outward from a sphere.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SphereLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/SphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SphereLight.js","sourceRoot":"","sources":["../../../src/nodes/lux/SphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D;;;;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"}
|