Commit Graph

78 Commits

Author SHA1 Message Date
charles derousiers
ac1e46eaca Fix crash with Substrate enabled with certain material.
#rb none
[FYI] sebastien.hillaire

[CL 28084647 by charles derousiers in ue5-main branch]
2023-09-21 09:14:50 -04:00
charles derousiers
265be512df Fix CIS issue.
#rb none

[CL 27751750 by charles derousiers in ue5-main branch]
2023-09-11 09:52:57 -04:00
charles derousiers
794ac57af6 Add substrate topology visualization for material function.
#rb none
[FYI] sebastien.hillaire

[CL 27751333 by charles derousiers in ue5-main branch]
2023-09-11 09:36:43 -04:00
charles derousiers
3bbd7deffc Fix Substrate topology visualization on Coverage operator.
#rb none
[FYI] sebastien.hillaire

[CL 27729427 by charles derousiers in ue5-main branch]
2023-09-08 17:23:33 -04:00
charles derousiers
3c5257ff84 Fix Substrate data pin color on node with several inputs.
#rb none

[CL 27696793 by charles derousiers in ue5-main branch]
2023-09-07 20:04:49 -04:00
sebastien hillaire
fc45c02460 Substrate - renaming - renamed to MCT_Substrate
#rb charles.derousiers

[CL 27593807 by sebastien hillaire in ue5-main branch]
2023-09-05 08:51:11 -04:00
marc audy
65de35fdfb Lof elements that were not renamed yet.
- MSM_Substrate
- MCT_Substrate
- FStrataMaterialInput

#rb charles.derousiers

[CL 27563163 by marc audy in ue5-main branch]
2023-09-01 15:06:19 -04:00
sebastien hillaire
eff56c2a11 Substrate - Renaming - Strata class redirection to Substrate class.
#rb none
[FYI] charles.derousiers

[CL 27518277 by sebastien hillaire in ue5-main branch]
2023-08-31 07:55:22 -04:00
charles derousiers
38bf8fb30e Fix CIS unity build issue.
#rb none

[CL 27515351 by charles derousiers in ue5-main branch]
2023-08-31 05:00:46 -04:00
charles derousiers
195d4a8fe8 * Fix Substrate colored connection on input
* Add colored pin for Substrate data flow

#rb none
[FYI] sebastien.hillaire

[CL 27515051 by charles derousiers in ue5-main branch]
2023-08-31 04:49:11 -04:00
sebastien hillaire
b7f8af4297 Substrate - Rename/move file(s)
#rb none
[FYI] charles.derousiers

[CL 27515000 by sebastien hillaire in ue5-main branch]
2023-08-31 04:48:07 -04:00
sebastien hillaire
4f274d1ef3 Substrate - Rename/move file(s)
#rb none
[FYI] charles.derousiers

[CL 27514986 by sebastien hillaire in ue5-main branch]
2023-08-31 04:47:50 -04:00
charles derousiers
fc598811b5 Add color Substrate wire.
#rb none
[FYI] sebastien.hillaire

[CL 27514913 by charles derousiers in ue5-main branch]
2023-08-31 04:46:18 -04:00
luc rosenzweig
47187a5b36 Added copyright boilerplate to SGraphNodeMaterialCustom.cpp
#jira UE-146779
#rb jason.nadro

[CL 26678553 by luc rosenzweig in ue5-main branch]
2023-07-28 13:24:36 -04:00
luc rosenzweig
c9eb19e6cd This changelist contains both a refactor of the material graph system, as well as an improved custom HLSL node.
The first series of changes relate to modifying the way that SGraphNode* inheritants are created. Previously, NodeFactory was responsible of creating the SGraphNode* inheritants based on some runtime type checking (which basically means a series of if statements checking if the passed in pointer is of a certain child class type). Now, the UMaterialGraph* inheritants (the controller classes in the MVC paradigm of the material graph) are responsible for creating their own UI components (SGraphNode* inheritants). This just means that we now polymorphically create the proper SGraphNode* for the given UMaterialGraph* inheritant.

This refactor allows us to more flexibly create a variety of nodes types instead of relying on SGraphNodeMaterialBase as a one size fits all solution, leading to the new HLSL custom node. Previously, this node didn't support showing the syntax-highlighted code inline in the node itself. Because we now use polymorphism to create the nodes, it was very easy to create new UMaterialGraph* and SGraphNode* inheritants to support this new change.

Other changes which relate to propagating changes (to affect previews) in MaterialGraphNode.cpp are needed because there previously wasn't the mechanism to do so (which may have been a bug). For instance, suppose you had a constant vector3 feeding into a custom HLSL node which just outputs the color coming from that constant vector3 node. It would be obvious that changing the vector3, requires a preview update of the HLSL node. However, that wouldn't happen - the preview on the HLSL node just stayed the same. These changes addresses that issue.

There is one last series of changes which relates to collapsing the HLSL code in the node. We want to make sure that this change doesn't mess up the layouts of artists' already made material graphs which use the custom HLSL node. In order to address this, we added the ability to collapse the code in order to hide it. Furthermore, we had to make sure that projects which previously used a custom HLSL node, have the code collapsed by default (because it wasn't there before). However, creating a new HLSL node once this change comes in, would yield an uncollapsed node. The collapsing of nodes uses the "Advanced Pins" chevron/collapser which doesn't save its state after saving and exiting the material. It was crucial, in order to preserve the layout of the material graph, that the saving happens. However, previously, the only way to save state, was to go through a recompile/regeneration of the previews. Therefore, it was necessary to add a special function in the material editor utilities which would just mark the material as dirty such that states like whether the code was collapsed save throughout sessions.

#jira UE-146779
#rb jason.nadro

[CL 26677757 by luc rosenzweig in ue5-main branch]
2023-07-28 13:01:00 -04:00
marc audy
dbe38354bf Remove #pragma once in cpp
#rnx
#jira

[CL 26023553 by marc audy in ue5-main branch]
2023-06-15 15:43:09 -04:00
charles derousiers
8e2b49e234 Fix CIS issue.
#rb none

[CL 26008408 by charles derousiers in ue5-main branch]
2023-06-15 06:30:59 -04:00
charles derousiers
6e8c3956cb Fix CIS issue.
#rb none

[CL 26007973 by charles derousiers in ue5-main branch]
2023-06-15 06:07:01 -04:00
sebastien hillaire
2659a75eed Substrate - added support for progressive simplification of material, starting from operators at the bottom.
#rb none
[FYI] charles.derousiers

[CL 26006829 by sebastien hillaire in ue5-main branch]
2023-06-15 05:22:20 -04:00
charles derousiers
399028fca0 Change Substrate topology node color.
#rb none

[CL 26006822 by charles derousiers in ue5-main branch]
2023-06-15 05:22:15 -04:00
charles derousiers
604f834cb5 Add Subsutrate topology previsualization on the Substrate node within material editor.
#rb none
[FYI] sebastien.hillaire

[CL 26006816 by charles derousiers in ue5-main branch]
2023-06-15 05:22:00 -04:00
bryan sefcik
925161d3e2 Another IWYU pass on Engine/Source/Editor/...
#jira

[CL 21716486 by bryan sefcik in ue5-main branch]
2022-08-30 23:04:40 -04:00
bryan sefcik
0837230669 Ran IWYU again on half of the Engine/Source/Editor/... source files.
#jira

[CL 21716414 by bryan sefcik in ue5-main branch]
2022-08-30 23:03:03 -04:00
massimo tristano
80eb789b44 Fixed assertion crash occurring when mouse-overing collapsed material attributes.
Crash occured while generating preview graph displayed in tooltip.

#jira UE-159508
#rb jason.nadro
#preflight 62f3c0e823003b62a328216c

[CL 21318060 by massimo tristano in ue5-main branch]
2022-08-10 10:34:41 -04:00
Josie Yang
af65e53764 Inline edit support to material expression inputs
- Inline edit support for UPROPERTY of type float, int32, uint32, uint8, enum, bool.
- Editable UPROPERTYs with "OverridingInputProperty" metadata are created as inline widgets next to their corresponding inputs.
- Rest of the editable UPROPERTYs may specify "ShowAsInputPin" metadata to become inline edit pins, with 2 choices: "Primary" - show in primary view, "Advanced" - show in in advanced view.
- Update a bunch of material expressions to reflect the changes, rest of the expressions still need to be worked through.

#jira UE-145276
#rb kevin.Ortegren
#preflight 627a3cc8937a047d62282ba7

[CL 20122451 by Josie Yang in ue5-main branch]
2022-05-10 09:53:13 -04:00