@markandre13/usd.js 0.0.4 → 0.0.6
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 +5 -2
- package/dist/compression/compress.js.map +1 -1
- package/dist/compression/integers.js +13 -0
- package/dist/compression/integers.js.map +1 -1
- package/dist/compression/lz4.d.ts +18 -1
- package/dist/compression/lz4.js +100 -17
- package/dist/compression/lz4.js.map +1 -1
- package/dist/crate/BootStrap.js +2 -0
- package/dist/crate/BootStrap.js.map +1 -1
- package/dist/crate/Crate.d.ts +10 -1
- package/dist/crate/Crate.js +72 -8
- 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 +2 -1
- package/dist/crate/Field.js +2 -2
- package/dist/crate/Field.js.map +1 -1
- package/dist/crate/FieldSets.js +1 -0
- package/dist/crate/FieldSets.js.map +1 -1
- package/dist/crate/Fields.d.ts +2 -10
- package/dist/crate/Fields.js +35 -4
- package/dist/crate/Fields.js.map +1 -1
- package/dist/crate/ListOp.d.ts +29 -0
- package/dist/crate/ListOp.js +22 -0
- package/dist/crate/ListOp.js.map +1 -0
- package/dist/crate/Paths.d.ts +1 -1
- package/dist/crate/Paths.js +16 -2
- package/dist/crate/Paths.js.map +1 -1
- package/dist/crate/Reader.js +3 -3
- package/dist/crate/Reader.js.map +1 -1
- package/dist/crate/SpecType.d.ts +3 -3
- package/dist/crate/SpecType.js +2 -0
- package/dist/crate/SpecType.js.map +1 -1
- package/dist/crate/Specifier.d.ts +1 -1
- package/dist/crate/Specs.js +1 -0
- package/dist/crate/Specs.js.map +1 -1
- package/dist/crate/Stage.d.ts +1 -1
- package/dist/crate/Stage.js +1 -0
- package/dist/crate/Stage.js.map +1 -1
- package/dist/crate/Strings.js +5 -0
- package/dist/crate/Strings.js.map +1 -1
- package/dist/crate/Tokens.js +47 -1
- package/dist/crate/Tokens.js.map +1 -1
- package/dist/crate/ValueRep.d.ts +2 -2
- package/dist/crate/ValueRep.js +33 -6
- package/dist/crate/ValueRep.js.map +1 -1
- package/dist/crate/Variability.d.ts +1 -1
- package/dist/crate/Writer.d.ts +3 -0
- package/dist/crate/Writer.js +21 -0
- package/dist/crate/Writer.js.map +1 -1
- package/dist/detail/hexdump.js +1 -0
- package/dist/detail/hexdump.js.map +1 -1
- package/dist/nodes/attributes/AssetPathAttr.d.ts +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 +1 -1
- package/dist/nodes/attributes/Attribute.js.map +1 -1
- package/dist/nodes/attributes/BooleanAttr.d.ts +1 -1
- package/dist/nodes/attributes/BooleanAttr.js +1 -1
- package/dist/nodes/attributes/BooleanAttr.js.map +1 -1
- package/dist/nodes/attributes/Color3fAttr.d.ts +3 -3
- package/dist/nodes/attributes/Color3fAttr.js +1 -1
- 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 +1 -1
- package/dist/nodes/attributes/FloatAttr.js.map +1 -1
- package/dist/nodes/attributes/IntArrayAttr.d.ts +4 -2
- package/dist/nodes/attributes/IntArrayAttr.js +6 -2
- package/dist/nodes/attributes/IntArrayAttr.js.map +1 -1
- package/dist/nodes/attributes/Relationship.d.ts +2 -2
- package/dist/nodes/attributes/Relationship.js +1 -1
- package/dist/nodes/attributes/Relationship.js.map +1 -1
- package/dist/nodes/attributes/StringAttr.d.ts +1 -1
- package/dist/nodes/attributes/StringAttr.js +1 -1
- package/dist/nodes/attributes/StringAttr.js.map +1 -1
- package/dist/nodes/attributes/TokenAttr.d.ts +3 -3
- package/dist/nodes/attributes/TokenAttr.js +13 -3
- package/dist/nodes/attributes/TokenAttr.js.map +1 -1
- package/dist/nodes/attributes/VariabilityAttr.d.ts +1 -1
- package/dist/nodes/attributes/VariabilityAttr.js +1 -1
- package/dist/nodes/attributes/VariabilityAttr.js.map +1 -1
- package/dist/nodes/attributes/Vec2fArrayAttr.d.ts +1 -1
- package/dist/nodes/attributes/Vec2fArrayAttr.js +1 -1
- package/dist/nodes/attributes/Vec2fArrayAttr.js.map +1 -1
- package/dist/nodes/attributes/Vec3fArrayAttr.d.ts +4 -2
- package/dist/nodes/attributes/Vec3fArrayAttr.js +6 -2
- package/dist/nodes/attributes/Vec3fArrayAttr.js.map +1 -1
- package/dist/nodes/geometry/Boundable.d.ts +6 -0
- package/dist/nodes/geometry/Boundable.js +6 -0
- package/dist/nodes/geometry/Boundable.js.map +1 -1
- package/dist/nodes/geometry/Camera.d.ts +7 -2
- package/dist/nodes/geometry/Camera.js +36 -0
- package/dist/nodes/geometry/Camera.js.map +1 -1
- package/dist/nodes/geometry/GeomSubset.d.ts +67 -2
- package/dist/nodes/geometry/GeomSubset.js +101 -8
- package/dist/nodes/geometry/GeomSubset.js.map +1 -1
- package/dist/nodes/geometry/Gprim.d.ts +28 -0
- package/dist/nodes/geometry/Gprim.js +30 -0
- package/dist/nodes/geometry/Gprim.js.map +1 -1
- package/dist/nodes/geometry/Imageable.d.ts +9 -0
- package/dist/nodes/geometry/Imageable.js +9 -0
- package/dist/nodes/geometry/Imageable.js.map +1 -1
- package/dist/nodes/geometry/Mesh.d.ts +75 -10
- package/dist/nodes/geometry/Mesh.js +121 -8
- package/dist/nodes/geometry/Mesh.js.map +1 -1
- package/dist/nodes/geometry/PointBased.d.ts +20 -2
- package/dist/nodes/geometry/PointBased.js +35 -11
- package/dist/nodes/geometry/PointBased.js.map +1 -1
- package/dist/nodes/geometry/Scope.d.ts +9 -1
- package/dist/nodes/geometry/Scope.js +8 -0
- package/dist/nodes/geometry/Scope.js.map +1 -1
- package/dist/nodes/geometry/SkelBindingAPI.d.ts +70 -0
- package/dist/nodes/geometry/SkelBindingAPI.js +2 -0
- package/dist/nodes/geometry/SkelBindingAPI.js.map +1 -0
- package/dist/nodes/geometry/Xform.d.ts +6 -1
- package/dist/nodes/geometry/Xform.js +5 -0
- package/dist/nodes/geometry/Xform.js.map +1 -1
- package/dist/nodes/geometry/Xformable.d.ts +9 -3
- package/dist/nodes/geometry/Xformable.js +6 -0
- package/dist/nodes/geometry/Xformable.js.map +1 -1
- package/dist/nodes/lux/BoundableLightBase.d.ts +8 -0
- package/dist/nodes/lux/BoundableLightBase.js +8 -0
- package/dist/nodes/lux/BoundableLightBase.js.map +1 -1
- package/dist/nodes/lux/DomeLight.d.ts +11 -1
- package/dist/nodes/lux/DomeLight.js +10 -0
- package/dist/nodes/lux/DomeLight.js.map +1 -1
- package/dist/nodes/lux/NonboundableLightBase.d.ts +1 -1
- package/dist/nodes/lux/NonboundableLightBase.js +10 -1
- package/dist/nodes/lux/NonboundableLightBase.js.map +1 -1
- package/dist/nodes/lux/SphereLight.d.ts +9 -1
- package/dist/nodes/lux/SphereLight.js +8 -0
- package/dist/nodes/lux/SphereLight.js.map +1 -1
- package/dist/nodes/shader/Material.d.ts +8 -1
- package/dist/nodes/shader/Material.js +19 -0
- package/dist/nodes/shader/Material.js.map +1 -1
- package/dist/nodes/shader/NodeGraph.d.ts +7 -0
- package/dist/nodes/shader/NodeGraph.js +7 -0
- package/dist/nodes/shader/NodeGraph.js.map +1 -1
- package/dist/nodes/shader/Shader.d.ts +9 -1
- package/dist/nodes/shader/Shader.js +8 -0
- 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 +26 -0
- package/dist/nodes/skeleton/SkelAnimation.js +50 -0
- package/dist/nodes/skeleton/SkelAnimation.js.map +1 -0
- package/dist/nodes/skeleton/SkelRoot.d.ts +6 -1
- package/dist/nodes/skeleton/SkelRoot.js +5 -0
- package/dist/nodes/skeleton/SkelRoot.js.map +1 -1
- package/dist/nodes/skeleton/Skeleton.d.ts +51 -4
- package/dist/nodes/skeleton/Skeleton.js +51 -0
- package/dist/nodes/skeleton/Skeleton.js.map +1 -1
- package/dist/nodes/usd/PseudoRoot.d.ts +1 -1
- package/dist/nodes/usd/PseudoRoot.js +21 -1
- 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 +10 -0
- package/dist/nodes/usd/Typed.js +10 -0
- package/dist/nodes/usd/Typed.js.map +1 -1
- package/dist/{crate → nodes/usd}/UsdNode.d.ts +21 -9
- package/dist/{crate → nodes/usd}/UsdNode.js +56 -2
- package/dist/nodes/usd/UsdNode.js.map +1 -0
- package/package.json +8 -8
- package/dist/crate/UsdNode.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -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;
|
|
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
|
|
7
|
-
set scale(value: number
|
|
8
|
-
set translate(value: number
|
|
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;
|
|
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;AAEvC;;;;;GAKG;AACH,MAAM,OAAgB,SAAU,SAAQ,SAAS;IAGpC,YAAY;QACjB,KAAK,CAAC,YAAY,EAAE,CA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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;
|
|
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;AAEjD;;;;;;;GAOG;AACH,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;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;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,15 @@
|
|
|
1
|
-
import type { UsdNode } from "
|
|
1
|
+
import type { UsdNode } 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;
|
|
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;AAE/D;;;;;;;;;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,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,6 +1,15 @@
|
|
|
1
|
-
import { UsdNode } from "
|
|
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,
|
|
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 "
|
|
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":"A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CAAC;CACJ"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import type { UsdNode } from "
|
|
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);
|
|
11
|
+
set surface(value: UsdNode | undefined);
|
|
5
12
|
set blenderDataName(value: string | undefined);
|
|
6
13
|
}
|
|
@@ -2,6 +2,13 @@ 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
|
+
import { Attribute } from "../attributes/Attribute";
|
|
6
|
+
/**
|
|
7
|
+
* A Material provides a container into which multiple "render contexts"
|
|
8
|
+
* can add data that defines a "shading material" for a renderer.
|
|
9
|
+
*
|
|
10
|
+
* defined in pxr/usd/usdShade/schema.usda
|
|
11
|
+
*/
|
|
5
12
|
export class Material extends NodeGraph {
|
|
6
13
|
constructor(parent, name) {
|
|
7
14
|
super(parent.crate, parent, -1, name, true);
|
|
@@ -9,6 +16,18 @@ export class Material extends NodeGraph {
|
|
|
9
16
|
this.specifier = Specifier.Def;
|
|
10
17
|
this.typeName = "Material";
|
|
11
18
|
}
|
|
19
|
+
set surface(value) {
|
|
20
|
+
this.deleteChild("outputs:surface");
|
|
21
|
+
if (value !== undefined) {
|
|
22
|
+
new Attribute(this, "outputs:surface", (node) => {
|
|
23
|
+
node.setToken("typeName", "token");
|
|
24
|
+
node.setPathListOp("connectionPaths", {
|
|
25
|
+
isExplicit: true,
|
|
26
|
+
explicit: [value]
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
12
31
|
set blenderDataName(value) {
|
|
13
32
|
this.deleteChild("userProperties:blender:data_name");
|
|
14
33
|
if (value !== undefined) {
|
|
@@ -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;
|
|
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;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnD;;;;;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,OAAO,CAAC,KAA0B;QAClC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAA;QACnC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC5C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;gBAClC,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE;oBAClC,UAAU,EAAE,IAAI;oBAChB,QAAQ,EAAE,CAAC,KAAK,CAAC;iBACpB,CAAC,CAAA;YACN,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,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QACrF,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":"
|
|
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 "
|
|
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;
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UsdNode } from "../../usd/UsdNode";
|
|
2
|
+
import { Shader } from "../Shader";
|
|
3
|
+
export type WrapMode = "black" | "clamp" | "repeat" | "mirror" | "useMetadata";
|
|
4
|
+
export declare class ImageTexture extends Shader {
|
|
5
|
+
set infoId(value: string | undefined);
|
|
6
|
+
set file(value: string | undefined);
|
|
7
|
+
set sourceColorSpace(value: "raw" | "sRGB" | "auto" | undefined);
|
|
8
|
+
set uvCoords(value: UsdNode | undefined);
|
|
9
|
+
set wrapS(value: WrapMode | undefined);
|
|
10
|
+
set wrapT(value: WrapMode | undefined);
|
|
11
|
+
get outputsRGB(): UsdNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Variability } from "../../../crate/Variability";
|
|
2
|
+
import { AssetPathAttr } from "../../attributes/AssetPathAttr";
|
|
3
|
+
import { Attribute } from "../../attributes/Attribute";
|
|
4
|
+
import { TokenAttr } from "../../attributes/TokenAttr";
|
|
5
|
+
import { Shader } from "../Shader";
|
|
6
|
+
export class ImageTexture extends Shader {
|
|
7
|
+
set infoId(value) {
|
|
8
|
+
this.deleteChild("info:id");
|
|
9
|
+
if (value !== undefined) {
|
|
10
|
+
new TokenAttr(this, "info:id", Variability.Uniform, value);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
set file(value) {
|
|
14
|
+
this.deleteChild("inputs:file");
|
|
15
|
+
if (value !== undefined) {
|
|
16
|
+
new AssetPathAttr(this, "inputs:file", value);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
set sourceColorSpace(value) {
|
|
20
|
+
this.deleteChild("inputs:sourceColorSpace");
|
|
21
|
+
if (value !== undefined) {
|
|
22
|
+
new TokenAttr(this, "inputs:sourceColorSpace", undefined, value);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
set uvCoords(value) {
|
|
26
|
+
this.deleteChild("inputs:st");
|
|
27
|
+
if (value !== undefined) {
|
|
28
|
+
new Attribute(this, "inputs:st", (node) => {
|
|
29
|
+
node.setToken("typeName", "float2");
|
|
30
|
+
node.setPathListOp("connectionPaths", {
|
|
31
|
+
isExplicit: true,
|
|
32
|
+
explicit: [value]
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
set wrapS(value) {
|
|
38
|
+
this.deleteChild("inputs:wrapS");
|
|
39
|
+
if (value !== undefined) {
|
|
40
|
+
new TokenAttr(this, "inputs:wrapS", undefined, value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
set wrapT(value) {
|
|
44
|
+
this.deleteChild("inputs:wrapT");
|
|
45
|
+
if (value !== undefined) {
|
|
46
|
+
new TokenAttr(this, "inputs:wrapT", undefined, value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get outputsRGB() {
|
|
50
|
+
const node = this.findChild("outputs:rgb");
|
|
51
|
+
if (node !== undefined) {
|
|
52
|
+
return node;
|
|
53
|
+
}
|
|
54
|
+
return new Attribute(this, "outputs:rgb", node => {
|
|
55
|
+
node.setToken("typeName", "float3");
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=ImageTexture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageTexture.js","sourceRoot":"","sources":["../../../../src/nodes/shader/blender/ImageTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAIlC,MAAM,OAAO,YAAa,SAAQ,MAAM;IACpC,IAAI,MAAM,CAAC,KAAyB;QAChC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC3B,IAAI,KAAK,KAAK,SAAS,E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KAAK,CAAC,KAA2B;QACjC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAA;QAChC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,SAAS,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;QACzD,CAAC;IACL,CAAC;IACD,IAAI,UAAU;QACV,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QAC1C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,OAAO,IAAI,CAAA;QACf,CAAC;QACD,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE;YAC7C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC,CAAC,CAAA;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UsdNode } from "../../usd/UsdNode";
|
|
2
|
+
import { Shader } from "../Shader";
|
|
3
|
+
export declare class PrincipledBSDF extends Shader {
|
|
4
|
+
set infoId(value: string | undefined);
|
|
5
|
+
set clearcoat(value: number | undefined);
|
|
6
|
+
set clearcoatRoughness(value: number | undefined);
|
|
7
|
+
set diffuseColor(value: number[] | UsdNode | undefined);
|
|
8
|
+
set ior(value: number | undefined);
|
|
9
|
+
set metallic(value: number | undefined);
|
|
10
|
+
set opacity(value: number | undefined);
|
|
11
|
+
set roughness(value: number | undefined);
|
|
12
|
+
set specular(value: number | undefined);
|
|
13
|
+
get outputsSurface(): UsdNode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Variability } from "../../../crate/Variability";
|
|
2
|
+
import { Attribute } from "../../attributes/Attribute";
|
|
3
|
+
import { Color3fAttr } from "../../attributes/Color3fAttr";
|
|
4
|
+
import { FloatAttr } from "../../attributes/FloatAttr";
|
|
5
|
+
import { TokenAttr } from "../../attributes/TokenAttr";
|
|
6
|
+
import { UsdNode } from "../../usd/UsdNode";
|
|
7
|
+
import { Shader } from "../Shader";
|
|
8
|
+
export class PrincipledBSDF extends Shader {
|
|
9
|
+
set infoId(value) {
|
|
10
|
+
this.deleteChild("info:id");
|
|
11
|
+
if (value !== undefined) {
|
|
12
|
+
new TokenAttr(this, "info:id", Variability.Uniform, value);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
set clearcoat(value) {
|
|
16
|
+
this.deleteChild("inputs:clearcoat");
|
|
17
|
+
if (value !== undefined) {
|
|
18
|
+
new FloatAttr(this, "inputs:clearcoat", value);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
set clearcoatRoughness(value) {
|
|
22
|
+
this.deleteChild("inputs:clearcoatRoughness");
|
|
23
|
+
if (value !== undefined) {
|
|
24
|
+
new FloatAttr(this, "inputs:clearcoatRoughness", value);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
set diffuseColor(value) {
|
|
28
|
+
this.deleteChild("inputs:diffuseColor");
|
|
29
|
+
if (value !== undefined) {
|
|
30
|
+
if (value instanceof UsdNode) {
|
|
31
|
+
new Attribute(this, "inputs:diffuseColor", node => {
|
|
32
|
+
node.setToken("typeName", "color3f");
|
|
33
|
+
node.setPathListOp("connectionPaths", {
|
|
34
|
+
isExplicit: true,
|
|
35
|
+
explicit: [value]
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
new Color3fAttr(this, "inputs:diffuseColor", value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
set ior(value) {
|
|
45
|
+
this.deleteChild("inputs:ior");
|
|
46
|
+
if (value !== undefined) {
|
|
47
|
+
new FloatAttr(this, "inputs:ior", value);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
set metallic(value) {
|
|
51
|
+
this.deleteChild("inputs:metallic");
|
|
52
|
+
if (value !== undefined) {
|
|
53
|
+
new FloatAttr(this, "inputs:metallic", value);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
set opacity(value) {
|
|
57
|
+
this.deleteChild("inputs:opacity");
|
|
58
|
+
if (value !== undefined) {
|
|
59
|
+
new FloatAttr(this, "inputs:opacity", value);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
set roughness(value) {
|
|
63
|
+
this.deleteChild("inputs:roughness");
|
|
64
|
+
if (value !== undefined) {
|
|
65
|
+
new FloatAttr(this, "inputs:roughness", value);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
set specular(value) {
|
|
69
|
+
this.deleteChild("inputs:specular");
|
|
70
|
+
if (value !== undefined) {
|
|
71
|
+
new FloatAttr(this, "inputs:specular", value);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
get outputsSurface() {
|
|
75
|
+
let node = this.findChild("outputs:surface");
|
|
76
|
+
if (node) {
|
|
77
|
+
return node;
|
|
78
|
+
}
|
|
79
|
+
return new TokenAttr(this, "outputs:surface");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=PrincipledBSDF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrincipledBSDF.js","sourceRoot":"","sources":["../../../../src/nodes/shader/blender/PrincipledBSDF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,MAAM,OAAO,cAAe,SAAQ,MAAM;IACtC,IA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QACD,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAA;IACjD,CAAC;CACJ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Shader } from "../Shader";
|
|
2
|
+
/**
|
|
3
|
+
* Blender 'UV Map' input node: Retrieves a UV Map from the geometry
|
|
4
|
+
*/
|
|
5
|
+
export declare class UVMap extends Shader {
|
|
6
|
+
set infoId(value: string | undefined);
|
|
7
|
+
set inputsVarname(value: string | undefined);
|
|
8
|
+
get outputsResult(): import("../../usd/UsdNode").UsdNode;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Variability } from "../../../crate/Variability";
|
|
2
|
+
import { Attribute } from "../../attributes/Attribute";
|
|
3
|
+
import { StringAttr } from "../../attributes/StringAttr";
|
|
4
|
+
import { TokenAttr } from "../../attributes/TokenAttr";
|
|
5
|
+
import { Shader } from "../Shader";
|
|
6
|
+
/**
|
|
7
|
+
* Blender 'UV Map' input node: Retrieves a UV Map from the geometry
|
|
8
|
+
*/
|
|
9
|
+
export class UVMap extends Shader {
|
|
10
|
+
set infoId(value) {
|
|
11
|
+
this.deleteChild("info:id");
|
|
12
|
+
if (value !== undefined) {
|
|
13
|
+
new TokenAttr(this, "info:id", Variability.Uniform, value);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
set inputsVarname(value) {
|
|
17
|
+
this.deleteChild("inputs:varname");
|
|
18
|
+
if (value !== undefined) {
|
|
19
|
+
new StringAttr(this, "inputs:varname", value);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
get outputsResult() {
|
|
23
|
+
let node = this.findChild("outputs:result");
|
|
24
|
+
if (node) {
|
|
25
|
+
return node;
|
|
26
|
+
}
|
|
27
|
+
return new Attribute(this, "outputs:result", node => {
|
|
28
|
+
node.setToken("typeName", "float2");
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=UVMap.js.map
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+
import { Typed } from "../usd/Typed";
|
|
2
|
+
import { UsdNode } from "../usd/UsdNode";
|
|
3
|
+
/**
|
|
4
|
+
* Describes a target blend shape, possibly containing inbetween shapes.
|
|
5
|
+
*
|
|
6
|
+
* defined in pxr/usd/usdSkel/schema.usda
|
|
7
|
+
*/
|
|
8
|
+
export declare class BlendShape extends Typed {
|
|
9
|
+
constructor(parent: UsdNode, name: string);
|
|
10
|
+
/**
|
|
11
|
+
* **Required property**. Position offsets which, when added to the
|
|
12
|
+
* base pose, provides the target shape.
|
|
13
|
+
*/
|
|
14
|
+
set offsets(value: ArrayLike<number> | undefined);
|
|
15
|
+
/**
|
|
16
|
+
* **Required property**. Normal offsets which, when added to the
|
|
17
|
+
* base pose, provides the normals of the target shape.
|
|
18
|
+
*/
|
|
19
|
+
set normalOffsets(value: ArrayLike<number> | undefined);
|
|
20
|
+
set pointIndices(value: ArrayLike<number> | undefined);
|
|
21
|
+
}
|