@babylonjs/node-editor 5.3.0 → 5.5.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.
|
@@ -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",
|
|
@@ -64876,7 +64881,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64876
64881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
64877
64882
|
/* harmony export */ "TextureDisplayManager": () => (/* binding */ TextureDisplayManager)
|
|
64878
64883
|
/* harmony export */ });
|
|
64879
|
-
/* harmony import */ var core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/
|
|
64884
|
+
/* harmony import */ var core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/PBR/reflectionBlock */ "core/Misc/dataStorage");
|
|
64880
64885
|
/* harmony import */ var core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__);
|
|
64881
64886
|
/* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "../../../tools/nodeEditor/dist/sharedComponents/textureLineComponent.js");
|
|
64882
64887
|
|
|
@@ -64884,6 +64889,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64884
64889
|
|
|
64885
64890
|
|
|
64886
64891
|
|
|
64892
|
+
|
|
64887
64893
|
class TextureDisplayManager {
|
|
64888
64894
|
getHeaderClass() {
|
|
64889
64895
|
return "";
|
|
@@ -64904,7 +64910,7 @@ class TextureDisplayManager {
|
|
|
64904
64910
|
if (block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.TextureBlock) {
|
|
64905
64911
|
contentArea.classList.add("regular-texture-block");
|
|
64906
64912
|
}
|
|
64907
|
-
if (block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.ReflectionBlock) {
|
|
64913
|
+
if (block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.ReflectionTextureBlock || block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.ReflectionBlock) {
|
|
64908
64914
|
contentArea.classList.add("reflection-block");
|
|
64909
64915
|
}
|
|
64910
64916
|
if (block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.CurrentScreenBlock || block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.ParticleTextureBlock) {
|
|
@@ -69040,13 +69046,13 @@ class InputPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Compo
|
|
|
69040
69046
|
attributeOptions = [
|
|
69041
69047
|
{ label: "position", value: "position" },
|
|
69042
69048
|
{ label: "normal", value: "normal" },
|
|
69043
|
-
{ label: "tangent", value: "tangent" },
|
|
69044
69049
|
];
|
|
69045
69050
|
break;
|
|
69046
69051
|
case core_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__.NodeMaterialBlockConnectionPointTypes.Vector4:
|
|
69047
69052
|
attributeOptions = [
|
|
69048
69053
|
{ label: "matricesIndices", value: "matricesIndices" },
|
|
69049
69054
|
{ label: "matricesWeights", value: "matricesWeights" },
|
|
69055
|
+
{ label: "tangent", value: "tangent" },
|
|
69050
69056
|
];
|
|
69051
69057
|
systemValuesOptions = [{ label: "Camera parameters", value: core_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__.NodeMaterialSystemValues.CameraParameters }];
|
|
69052
69058
|
break;
|
|
@@ -69167,7 +69173,7 @@ class LightInformationPropertyTabComponent extends react__WEBPACK_IMPORTED_MODUL
|
|
|
69167
69173
|
return { label: l.name, value: l.name };
|
|
69168
69174
|
});
|
|
69169
69175
|
const lightInformationBlock = this.props.block;
|
|
69170
|
-
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) => {
|
|
69171
69177
|
lightInformationBlock.light = scene.getLightByName(name);
|
|
69172
69178
|
this.forceUpdate();
|
|
69173
69179
|
this.props.globalState.onRebuildRequiredObservable.notifyObservers(true);
|