@babylonjs/node-editor 5.33.1 → 5.34.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.
@@ -677,12 +677,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
677
677
|
|
678
678
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
679
679
|
// Module
|
680
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__regular-texture-block {\n margin-top: 60px; }\n\n.\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reduced-texture-block {\n margin-top: 30px; }\n\n.\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reflection-block {\n grid-row: 3 !important; }\n", "",{"version":3,"sources":["webpack://./../../../tools/nodeEditor/dist/graphSystem/display/textureDisplayManager.modules.scss"],"names":[],"mappings":"AAAA;EACI,gBAAgB,EAAA;;AAGpB;EACI,gBAAgB,EAAA;;AAGpB;EACI,sBAAsB,EAAA","sourcesContent":[".regular-texture-block {\r\n margin-top: 60px;\r\n}\r\n\r\n.reduced-texture-block {\r\n margin-top: 30px;\r\n}\r\n\r\n.reflection-block {\r\n grid-row: 3 !important;\r\n}\r\n"],"sourceRoot":""}]);
|
680
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__regular-texture-block {\n margin-top: 60px; }\n\n.\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reduced-texture-block {\n margin-top: 30px; }\n\n.\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reflection-block {\n grid-row: 3 !important; }\n\n.\\---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__triplanar-texture-block {\n margin-top: 106px; }\n", "",{"version":3,"sources":["webpack://./../../../tools/nodeEditor/dist/graphSystem/display/textureDisplayManager.modules.scss"],"names":[],"mappings":"AAAA;EACI,gBAAgB,EAAA;;AAGpB;EACI,gBAAgB,EAAA;;AAGpB;EACI,sBAAsB,EAAA;;AAG1B;EACI,iBAAiB,EAAA","sourcesContent":[".regular-texture-block {\r\n margin-top: 60px;\r\n}\r\n\r\n.reduced-texture-block {\r\n margin-top: 30px;\r\n}\r\n\r\n.reflection-block {\r\n grid-row: 3 !important;\r\n}\r\n\r\n.triplanar-texture-block {\r\n margin-top: 106px;\r\n}\r\n"],"sourceRoot":""}]);
|
681
681
|
// Exports
|
682
682
|
___CSS_LOADER_EXPORT___.locals = {
|
683
683
|
"regular-texture-block": "---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__regular-texture-block",
|
684
684
|
"reduced-texture-block": "---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reduced-texture-block",
|
685
|
-
"reflection-block": "---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reflection-block"
|
685
|
+
"reflection-block": "---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__reflection-block",
|
686
|
+
"triplanar-texture-block": "---------tools-nodeEditor-dist-graphSystem-display-textureDisplayManager-modules__triplanar-texture-block"
|
686
687
|
};
|
687
688
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
688
689
|
|
@@ -67595,7 +67596,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
67595
67596
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
67596
67597
|
/* harmony export */ "BlockTools": () => (/* binding */ BlockTools)
|
67597
67598
|
/* harmony export */ });
|
67598
|
-
/* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/
|
67599
|
+
/* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/biPlanarBlock */ "core/Misc/dataStorage");
|
67599
67600
|
/* harmony import */ var core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__);
|
67600
67601
|
|
67601
67602
|
|
@@ -67681,6 +67682,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
67681
67682
|
|
67682
67683
|
|
67683
67684
|
|
67685
|
+
|
67686
|
+
|
67687
|
+
|
67688
|
+
|
67684
67689
|
|
67685
67690
|
|
67686
67691
|
|
@@ -68181,6 +68186,14 @@ class BlockTools {
|
|
68181
68186
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.ImageSourceBlock("ImageSource");
|
68182
68187
|
case "ClipPlanesBlock":
|
68183
68188
|
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.ClipPlanesBlock("ClipPlanes");
|
68189
|
+
case "FragDepthBlock":
|
68190
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.FragDepthBlock("FragDepth");
|
68191
|
+
case "ShadowMapBlock":
|
68192
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.ShadowMapBlock("ShadowMap");
|
68193
|
+
case "TriPlanarBlock":
|
68194
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.TriPlanarBlock("TriPlanarTexture");
|
68195
|
+
case "BiPlanarBlock":
|
68196
|
+
return new core_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__.BiPlanarBlock("BiPlanarTexture");
|
68184
68197
|
}
|
68185
68198
|
return null;
|
68186
68199
|
}
|
@@ -68468,6 +68481,8 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
68468
68481
|
"FragCoordBlock",
|
68469
68482
|
"ScreenSizeBlock",
|
68470
68483
|
"ImageSourceBlock",
|
68484
|
+
"TriPlanarBlock",
|
68485
|
+
"BiPlanarBlock",
|
68471
68486
|
],
|
68472
68487
|
Interpolation: ["LerpBlock", "StepBlock", "SmoothStepBlock", "NLerpBlock"],
|
68473
68488
|
Logical: ["EqualBlock", "NotEqualBlock", "LessThanBlock", "LessOrEqualBlock", "GreaterThanBlock", "GreaterOrEqualBlock", "XorBlock", "OrBlock", "AndBlock"],
|
@@ -68530,7 +68545,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
68530
68545
|
"ProjectionMatrixBlock",
|
68531
68546
|
"MatrixBuilderBlock",
|
68532
68547
|
],
|
68533
|
-
Misc: ["ElbowBlock"],
|
68548
|
+
Misc: ["ElbowBlock", "ShadowMapBlock"],
|
68534
68549
|
Mesh: [
|
68535
68550
|
"InstancesBlock",
|
68536
68551
|
"PositionBlock",
|
@@ -68551,7 +68566,7 @@ class NodeListComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
68551
68566
|
"FrontFacingBlock",
|
68552
68567
|
],
|
68553
68568
|
Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock", "CloudBlock", "VoronoiNoiseBlock"],
|
68554
|
-
Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock", "ClipPlanesBlock"],
|
68569
|
+
Output_Nodes: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock", "ClipPlanesBlock", "FragDepthBlock"],
|
68555
68570
|
Particle: [
|
68556
68571
|
"ParticleBlendMultiplyBlock",
|
68557
68572
|
"ParticleColorBlock",
|
@@ -68792,6 +68807,10 @@ NodeListComponent._Tooltips = {
|
|
68792
68807
|
ElbowBlock: "Passthrough block mostly used to organize your graph",
|
68793
68808
|
ClipPlanesBlock: "A node that add clip planes support",
|
68794
68809
|
HeightToNormalBlock: "Convert a height map into a normal map",
|
68810
|
+
FragDepthBlock: "A final node that sets the fragment depth",
|
68811
|
+
ShadowMapBlock: "Compute a depth value suitable for shadow map generation",
|
68812
|
+
TriPlanarBlock: "A node for reading a texture with triplanar mapping",
|
68813
|
+
BiPlanarBlock: "A node for reading a texture with biplanar mapping",
|
68795
68814
|
};
|
68796
68815
|
|
68797
68816
|
|
@@ -71604,7 +71623,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
71604
71623
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
71605
71624
|
/* harmony export */ "TextureDisplayManager": () => (/* binding */ TextureDisplayManager)
|
71606
71625
|
/* harmony export */ });
|
71607
|
-
/* harmony import */ var core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/
|
71626
|
+
/* harmony import */ var core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Materials/Node/Blocks/triPlanarBlock */ "core/Misc/dataStorage");
|
71608
71627
|
/* 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__);
|
71609
71628
|
/* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "../../../tools/nodeEditor/dist/sharedComponents/textureLineComponent.js");
|
71610
71629
|
/* harmony import */ var _textureDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./textureDisplayManager.modules.scss */ "../../../tools/nodeEditor/dist/graphSystem/display/textureDisplayManager.modules.scss");
|
@@ -71617,6 +71636,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
71617
71636
|
|
71618
71637
|
|
71619
71638
|
|
71639
|
+
|
71620
71640
|
class TextureDisplayManager {
|
71621
71641
|
getHeaderClass() {
|
71622
71642
|
return "";
|
@@ -71645,6 +71665,9 @@ class TextureDisplayManager {
|
|
71645
71665
|
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) {
|
71646
71666
|
contentArea.classList.add(_textureDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_2__["default"]["reduced-texture-block"]);
|
71647
71667
|
}
|
71668
|
+
if (block instanceof core_Materials_Node_Blocks_Dual_textureBlock__WEBPACK_IMPORTED_MODULE_0__.TriPlanarBlock) {
|
71669
|
+
contentArea.classList.add(_textureDisplayManager_modules_scss__WEBPACK_IMPORTED_MODULE_2__["default"]["triplanar-texture-block"]);
|
71670
|
+
}
|
71648
71671
|
this._previewCanvas = contentArea.ownerDocument.createElement("canvas");
|
71649
71672
|
this._previewImage = contentArea.ownerDocument.createElement("img");
|
71650
71673
|
contentArea.appendChild(this._previewImage);
|
@@ -72017,7 +72040,10 @@ class GenericPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Com
|
|
72017
72040
|
constructor(props) {
|
72018
72041
|
super(props);
|
72019
72042
|
}
|
72020
|
-
forceRebuild(notifiers) {
|
72043
|
+
forceRebuild(propertyName, notifiers) {
|
72044
|
+
if (notifiers?.onValidation && !notifiers?.onValidation(this.props.nodeData.data, propertyName)) {
|
72045
|
+
return;
|
72046
|
+
}
|
72021
72047
|
if (!notifiers || notifiers.update) {
|
72022
72048
|
this.props.stateManager.onUpdateRequiredObservable.notifyObservers(this.props.nodeData.data);
|
72023
72049
|
}
|
@@ -72027,7 +72053,7 @@ class GenericPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Com
|
|
72027
72053
|
if (notifiers?.activatePreviewCommand) {
|
72028
72054
|
this.props.stateManager.data.onPreviewCommandActivated.notifyObservers(true);
|
72029
72055
|
}
|
72030
|
-
notifiers?.callback?.(this.props.stateManager.data.nodeMaterial.getScene());
|
72056
|
+
notifiers?.callback?.(this.props.stateManager.data.nodeMaterial.getScene(), this.props.nodeData.data);
|
72031
72057
|
}
|
72032
72058
|
render() {
|
72033
72059
|
const block = this.props.nodeData.data, propStore = block._propStore;
|
@@ -72044,29 +72070,29 @@ class GenericPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Com
|
|
72044
72070
|
}
|
72045
72071
|
switch (type) {
|
72046
72072
|
case core_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_4__.PropertyTypeForEdition.Boolean: {
|
72047
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__.CheckBoxLineComponent, { label: displayName, target: block, propertyName: propertyName, onValueChanged: () => this.forceRebuild(options.notifiers) }, `checkBox-${propertyName}`));
|
72073
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__.CheckBoxLineComponent, { label: displayName, target: block, propertyName: propertyName, onValueChanged: () => this.forceRebuild(propertyName, options.notifiers) }, `checkBox-${propertyName}`));
|
72048
72074
|
break;
|
72049
72075
|
}
|
72050
72076
|
case core_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_4__.PropertyTypeForEdition.Float: {
|
72051
72077
|
const cantDisplaySlider = isNaN(options.min) || isNaN(options.max) || options.min === options.max;
|
72052
72078
|
if (cantDisplaySlider) {
|
72053
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__.FloatLineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(options.notifiers) }, `float-${propertyName}`));
|
72079
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__.FloatLineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(propertyName, options.notifiers) }, `float-${propertyName}`));
|
72054
72080
|
}
|
72055
72081
|
else {
|
72056
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__.SliderLineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, target: block, propertyName: propertyName, step: Math.abs(options.max - options.min) / 100.0, minimum: Math.min(options.min, options.max), maximum: options.max, onChange: () => this.forceRebuild(options.notifiers) }, `slider-${propertyName}`));
|
72082
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_10__.SliderLineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, target: block, propertyName: propertyName, step: Math.abs(options.max - options.min) / 100.0, minimum: Math.min(options.min, options.max), maximum: options.max, onChange: () => this.forceRebuild(propertyName, options.notifiers) }, `slider-${propertyName}`));
|
72057
72083
|
}
|
72058
72084
|
break;
|
72059
72085
|
}
|
72060
72086
|
case core_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_4__.PropertyTypeForEdition.Int: {
|
72061
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__.FloatLineComponent, { lockObject: this.props.stateManager.lockObject, digits: 0, step: "1", isInteger: true, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(options.notifiers) }, `int-${propertyName}`));
|
72087
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_9__.FloatLineComponent, { lockObject: this.props.stateManager.lockObject, digits: 0, step: "1", isInteger: true, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(propertyName, options.notifiers) }, `int-${propertyName}`));
|
72062
72088
|
break;
|
72063
72089
|
}
|
72064
72090
|
case core_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_4__.PropertyTypeForEdition.Vector2: {
|
72065
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__.Vector2LineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(options.notifiers) }, `vector2-${propertyName}`));
|
72091
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_vector2LineComponent__WEBPACK_IMPORTED_MODULE_6__.Vector2LineComponent, { lockObject: this.props.stateManager.lockObject, label: displayName, propertyName: propertyName, target: block, onChange: () => this.forceRebuild(propertyName, options.notifiers) }, `vector2-${propertyName}`));
|
72066
72092
|
break;
|
72067
72093
|
}
|
72068
72094
|
case core_Materials_Node_nodeMaterialDecorator__WEBPACK_IMPORTED_MODULE_4__.PropertyTypeForEdition.List: {
|
72069
|
-
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__.OptionsLineComponent, { label: displayName, options: options.options, target: block, propertyName: propertyName, onSelect: () => this.forceRebuild(options.notifiers) }, `options-${propertyName}`));
|
72095
|
+
components.push((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_7__.OptionsLineComponent, { label: displayName, options: options.options, target: block, propertyName: propertyName, onSelect: () => this.forceRebuild(propertyName, options.notifiers) }, `options-${propertyName}`));
|
72070
72096
|
break;
|
72071
72097
|
}
|
72072
72098
|
}
|
@@ -72756,51 +72782,6 @@ class LightInformationPropertyTabComponent extends react__WEBPACK_IMPORTED_MODUL
|
|
72756
72782
|
}
|
72757
72783
|
|
72758
72784
|
|
72759
|
-
/***/ }),
|
72760
|
-
|
72761
|
-
/***/ "../../../tools/nodeEditor/dist/graphSystem/properties/lightPropertyTabComponent.js":
|
72762
|
-
/*!******************************************************************************************!*\
|
72763
|
-
!*** ../../../tools/nodeEditor/dist/graphSystem/properties/lightPropertyTabComponent.js ***!
|
72764
|
-
\******************************************************************************************/
|
72765
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
72766
|
-
|
72767
|
-
"use strict";
|
72768
|
-
__webpack_require__.r(__webpack_exports__);
|
72769
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
72770
|
-
/* harmony export */ "LightPropertyTabComponent": () => (/* binding */ LightPropertyTabComponent)
|
72771
|
-
/* harmony export */ });
|
72772
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "../../../../node_modules/react/jsx-runtime.js");
|
72773
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
|
72774
|
-
/* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "../../../tools/nodeEditor/dist/sharedComponents/lineContainerComponent.js");
|
72775
|
-
/* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/genericNodePropertyComponent.js");
|
72776
|
-
/* harmony import */ var shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shared-ui-components/lines/optionsLineComponent */ "../../../dev/sharedUiComponents/dist/lines/optionsLineComponent.js");
|
72777
|
-
|
72778
|
-
|
72779
|
-
|
72780
|
-
|
72781
|
-
|
72782
|
-
class LightPropertyTabComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
72783
|
-
render() {
|
72784
|
-
const scene = this.props.stateManager.data.nodeMaterial.getScene();
|
72785
|
-
const lightOptions = scene.lights.map((l) => {
|
72786
|
-
return { label: l.name, value: l.name };
|
72787
|
-
});
|
72788
|
-
lightOptions.splice(0, 0, { label: "All", value: "" });
|
72789
|
-
const lightBlock = this.props.nodeData.data;
|
72790
|
-
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_3__.GeneralPropertyTabComponent, { stateManager: this.props.stateManager, nodeData: this.props.nodeData }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__.LineContainerComponent, { title: "PROPERTIES", children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__.OptionsLineComponent, { label: "Light", defaultIfNull: 0, noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: lightBlock, propertyName: "name", onSelect: (name) => {
|
72791
|
-
if (name === "") {
|
72792
|
-
lightBlock.light = null;
|
72793
|
-
}
|
72794
|
-
else {
|
72795
|
-
lightBlock.light = scene.getLightByName(name);
|
72796
|
-
}
|
72797
|
-
this.forceUpdate();
|
72798
|
-
this.props.stateManager.onRebuildRequiredObservable.notifyObservers(true);
|
72799
|
-
} }) })] }));
|
72800
|
-
}
|
72801
|
-
}
|
72802
|
-
|
72803
|
-
|
72804
72785
|
/***/ }),
|
72805
72786
|
|
72806
72787
|
/***/ "../../../tools/nodeEditor/dist/graphSystem/properties/nodePortPropertyComponent.js":
|
@@ -73485,6 +73466,8 @@ const RegisterToDisplayManagers = () => {
|
|
73485
73466
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.RefractionBlock = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__.TextureDisplayManager;
|
73486
73467
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.CurrentScreenBlock = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__.TextureDisplayManager;
|
73487
73468
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.ParticleTextureBlock = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__.TextureDisplayManager;
|
73469
|
+
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.TriPlanarBlock = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__.TextureDisplayManager;
|
73470
|
+
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.BiPlanarBlock = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__.TextureDisplayManager;
|
73488
73471
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.DiscardBlock = _display_discardDisplayManager__WEBPACK_IMPORTED_MODULE_7__.DiscardDisplayManager;
|
73489
73472
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.PBRMetallicRoughnessBlock = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__.PBRDisplayManager;
|
73490
73473
|
shared_ui_components_nodeGraphSystem_displayLedger__WEBPACK_IMPORTED_MODULE_12__.DisplayLedger.RegisteredControls.AnisotropyBlock = _display_pbrDisplayManager__WEBPACK_IMPORTED_MODULE_8__.PBRDisplayManager;
|
@@ -73517,12 +73500,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
73517
73500
|
/* harmony import */ var _properties_imageSourcePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./properties/imageSourcePropertyTabComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/imageSourcePropertyTabComponent.js");
|
73518
73501
|
/* harmony import */ var _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties/inputNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/inputNodePropertyComponent.js");
|
73519
73502
|
/* harmony import */ var _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./properties/lightInformationPropertyTabComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/lightInformationPropertyTabComponent.js");
|
73520
|
-
/* harmony import */ var
|
73521
|
-
/* harmony import */ var
|
73522
|
-
/* harmony import */ var
|
73523
|
-
/* harmony import */ var
|
73524
|
-
/* harmony import */ var _properties_vectorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./properties/vectorMergerPropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/vectorMergerPropertyComponent.js");
|
73525
|
-
|
73503
|
+
/* harmony import */ var _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./properties/texturePropertyTabComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/texturePropertyTabComponent.js");
|
73504
|
+
/* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/transformNodePropertyComponent.js");
|
73505
|
+
/* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/trigonometryNodePropertyComponent.js");
|
73506
|
+
/* harmony import */ var _properties_vectorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./properties/vectorMergerPropertyComponent */ "../../../tools/nodeEditor/dist/graphSystem/properties/vectorMergerPropertyComponent.js");
|
73526
73507
|
|
73527
73508
|
|
73528
73509
|
|
@@ -73537,21 +73518,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
73537
73518
|
|
73538
73519
|
const RegisterToPropertyTabManagers = () => {
|
73539
73520
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.DefaultControl = _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__.GenericPropertyComponent;
|
73540
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TransformBlock =
|
73521
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TransformBlock = _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_9__.TransformPropertyTabComponent;
|
73541
73522
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.InputBlock = _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__.InputPropertyTabComponent;
|
73542
73523
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.GradientBlock = _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__.GradientPropertyTabComponent;
|
73543
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.LightBlock = _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.LightPropertyTabComponent;
|
73544
73524
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.LightInformationBlock = _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__.LightInformationPropertyTabComponent;
|
73545
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TextureBlock =
|
73546
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ReflectionTextureBlock =
|
73547
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ReflectionBlock =
|
73548
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.RefractionBlock =
|
73549
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.CurrentScreenBlock =
|
73550
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ParticleTextureBlock =
|
73551
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.
|
73525
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TextureBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73526
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ReflectionTextureBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73527
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ReflectionBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73528
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.RefractionBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73529
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.CurrentScreenBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73530
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ParticleTextureBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73531
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TriPlanarBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73532
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.BiPlanarBlock = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__.TexturePropertyTabComponent;
|
73533
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.TrigonometryBlock = _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_10__.TrigonometryPropertyTabComponent;
|
73552
73534
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ConditionalBlock = _properties_conditionalNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__.ConditionalPropertyTabComponent;
|
73553
73535
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ImageSourceBlock = _properties_imageSourcePropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__.ImageSourcePropertyTabComponent;
|
73554
|
-
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.VectorMergerBlock =
|
73536
|
+
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.VectorMergerBlock = _properties_vectorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_11__.VectorMergerPropertyTabComponent;
|
73555
73537
|
shared_ui_components_nodeGraphSystem_propertyLedger__WEBPACK_IMPORTED_MODULE_0__.PropertyLedger.RegisteredControls.ColorMergerBlock = _properties_colorMergerPropertyComponent__WEBPACK_IMPORTED_MODULE_1__.ColorMergerPropertyTabComponent;
|
73556
73538
|
};
|
73557
73539
|
|