@babylonjs/node-editor 5.4.0 → 5.5.0
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.
|
@@ -61863,6 +61863,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61863
61863
|
|
|
61864
61864
|
|
|
61865
61865
|
|
|
61866
|
+
|
|
61866
61867
|
|
|
61867
61868
|
|
|
61868
61869
|
class BlockTools {
|
|
@@ -61987,6 +61988,8 @@ class BlockTools {
|
|
|
61987
61988
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.NegateBlock("Negate");
|
|
61988
61989
|
case "PerturbNormalBlock":
|
|
61989
61990
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.PerturbNormalBlock("Perturb normal");
|
|
61991
|
+
case "TBNBlock":
|
|
61992
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.TBNBlock("TBN");
|
|
61990
61993
|
case "RandomNumberBlock":
|
|
61991
61994
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.RandomNumberBlock("Random number");
|
|
61992
61995
|
case "ReplaceColorBlock":
|
|
@@ -62707,6 +62710,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
|
62707
62710
|
"UVBlock",
|
|
62708
62711
|
"ColorBlock",
|
|
62709
62712
|
"NormalBlock",
|
|
62713
|
+
"TBNBlock",
|
|
62710
62714
|
"PerturbNormalBlock",
|
|
62711
62715
|
"NormalBlendBlock",
|
|
62712
62716
|
"TangentBlock",
|
|
@@ -62866,6 +62870,7 @@ NodeListComponent._Tooltips = {
|
|
|
62866
62870
|
WorldNormal: "A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",
|
|
62867
62871
|
WorldTangent: "A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",
|
|
62868
62872
|
PerturbNormalBlock: "Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",
|
|
62873
|
+
TBNBlock: "Creates a TBN matrix from normal, tangent, and bitangent vectors",
|
|
62869
62874
|
NormalBlend: "Outputs the result of blending two normal maps together using a per-channel screen",
|
|
62870
62875
|
WorldPosition: "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
|
|
62871
62876
|
DiscardBlock: "A final node that will not output a pixel below the cutoff value",
|
|
@@ -69041,13 +69046,13 @@ class InputPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Compo
|
|
|
69041
69046
|
attributeOptions = [
|
|
69042
69047
|
{ label: "position", value: "position" },
|
|
69043
69048
|
{ label: "normal", value: "normal" },
|
|
69044
|
-
{ label: "tangent", value: "tangent" },
|
|
69045
69049
|
];
|
|
69046
69050
|
break;
|
|
69047
69051
|
case core_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__.NodeMaterialBlockConnectionPointTypes.Vector4:
|
|
69048
69052
|
attributeOptions = [
|
|
69049
69053
|
{ label: "matricesIndices", value: "matricesIndices" },
|
|
69050
69054
|
{ label: "matricesWeights", value: "matricesWeights" },
|
|
69055
|
+
{ label: "tangent", value: "tangent" },
|
|
69051
69056
|
];
|
|
69052
69057
|
systemValuesOptions = [{ label: "Camera parameters", value: core_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__.NodeMaterialSystemValues.CameraParameters }];
|
|
69053
69058
|
break;
|
|
@@ -69168,7 +69173,7 @@ class LightInformationPropertyTabComponent extends react__WEBPACK_IMPORTED_MODUL
|
|
|
69168
69173
|
return { label: l.name, value: l.name };
|
|
69169
69174
|
});
|
|
69170
69175
|
const lightInformationBlock = this.props.block;
|
|
69171
|
-
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__.GeneralPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__.LineContainerComponent, Object.assign({ title: "PROPERTIES" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__.OptionsLineComponent, { label: "Light", noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: lightInformationBlock, propertyName: "name", onSelect: (name) => {
|
|
69176
|
+
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__.GeneralPropertyTabComponent, { globalState: this.props.globalState, block: this.props.block }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__.LineContainerComponent, Object.assign({ title: "PROPERTIES" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__.OptionsLineComponent, { label: "Light", noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: lightInformationBlock, propertyName: "name", getSelection: (target) => target.light.name, onSelect: (name) => {
|
|
69172
69177
|
lightInformationBlock.light = scene.getLightByName(name);
|
|
69173
69178
|
this.forceUpdate();
|
|
69174
69179
|
this.props.globalState.onRebuildRequiredObservable.notifyObservers(true);
|