Commit Graph

646 Commits

Author SHA1 Message Date
massimo tristano
e20cd251e0 Fixed crash occurring when the user selects multiple material parameter collection nodes belonging to different collections.
#rb jason.nadro
#preflight 636d17eff406b9a4ff2b6e9e

[CL 23102251 by massimo tristano in ue5-main branch]
2022-11-11 14:11:59 -05:00
jeremy moore
319d0a96cd Skip work for null MaterialResources
[CL 23039020 by jeremy moore in ue5-main branch]
2022-11-08 16:00:43 -05:00
steve robb
125fd0084e Removed explicit template parameters from calls to delegate creation functions.
#rb devin.doucette
#preflight 636416e31052c15f139cbadc

[CL 22968432 by steve robb in ue5-main branch]
2022-11-03 18:01:03 -04:00
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -04:00
jeremy moore
229b57dd77 Add material stats permutation for Runtime Virtual Texture output.
Useful for basic understanding of perf for landscape shaders that write RVT.
Mark material stats objects as Preview Materials. Without that we cull out any work gated by a layer weight when calculating stats.

[CL 22937906 by jeremy moore in ue5-main branch]
2022-11-02 23:06:33 -04:00
massimo tristano
f96aa8b162 Fix crash occurring in UEFN when the creates a MaterialLayer or a MaterialFunction and opens it in the Material Editor.
#rb jason.nadro, laura.hermanns
#preflight 6360176599482e1476d5cd0d

[CL 22917972 by massimo tristano in ue5-main branch]
2022-11-02 11:46:32 -04:00
lauren barnes
4473665157 Removed PropertyRow call to CustomResetToDefault for Labeled Texture Parameter customization
#rb JeanMichel.Dignard

[CL 22876131 by lauren barnes in ue5-main branch]
2022-10-31 20:55:44 -04:00
Arne Schober
075e43786d Prepare to move StaticSwitchData from EditorOnlyData into RuntimeData in preparation to make StaticSwitches dynamic
#preflight 635993e25d49a96f7b00d3df

[CL 22832676 by Arne Schober in ue5-main branch]
2022-10-28 13:54:13 -04:00
Charles deRousiers
2190bdd38e Add Strata debug mode into the level view menu.
This gives direct access to all Strata view mode, which helps with discoverability.

All strata view mode are also available with CVar: r.Strata.ViewMode

#rb none
#jira none
#preflight 635a22c68d56375d45d65e15
#fyi sebastien.hillaire

[CL 22806075 by Charles deRousiers in ue5-main branch]
2022-10-27 02:52:45 -04:00
henrik karlsson
4a5e13525d Fixed non-unity non-pch compile errors
#preflight skipped
#rb none

[CL 22788359 by henrik karlsson in ue5-main branch]
2022-10-26 16:22:34 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
tiago costa
aeb5141c1c Expose GetMaterialExpressionNodePosition() in Blueprint to be able to place new expressions in relation to existing ones.
#rb jason.nadro
#preflight 635300aa0313c2497447558d

[CL 22712143 by tiago costa in ue5-main branch]
2022-10-22 15:34:18 -04:00
bryan sefcik
0a3a232b0f Misc module file cleanup.
#jira
#preflight 634f4929864d9be23657bbf0

[CL 22634555 by bryan sefcik in ue5-main branch]
2022-10-19 15:07:57 -04:00
sebastien hillaire
a831062e45 Sparse volumetexture initial commit.
Sparse Volume Texture asset from imported OpenVDB (only a single float channel for now). Static or animated sequence.
It will be possible to generate SVT at runtime from GPU later.
Using FEditorBulkData for handling raw source without loading everything when not caching or cooking.
BulkData used at runtime for loading. No streaming yet.
Importer with dependency on OpenVDB is in a SparseVolumeTexture module only loaded when in editor

Sparse volume texture can be sampled from any materials (sample, sample parameter) and overridden on material instance and material instance dynamic.

Added support for uint in compiler (fetch from page table, see SparseVolumeTextureGetVoxelCoord)
Volume texture with u8 VirtualTextureLayerIndex!=255 (INDEX_NONE) are sparse texture. The layer index then represent what texture/attribute to sample.

#preflight https://horde.devtools.epicgames.com/job/6346a466f93be0f6345af86c
#rb Patrick.Kelly, Charles.deRousiers

[CL 22551963 by sebastien hillaire in ue5-main branch]
2022-10-16 02:28:34 -04:00
dan elksnitis
659ef98d9d [materials]
- fix non-determinism in material shader map; correctly account for permutation ID in keys when storing preprocessed source and deduplicate.
- fix material stats source lookup not accounting for permutation IDs and deprecate old API
- fix material stats searching for an invalid key in the case where vertex factory is null
- change material logging to construct & output the same hash as DDC, the FSHA1 hashed keys don't match
- change LogMaterial channel to allow VeryVerbose messages
- add VeryVerbose logging of the unhashed (i.e. human-readable) DDC key for material shader maps
- add a debug utility driven via cvar to output the textual representation of shader maps for a given named material to disk (was key in tracking down the non-determinism mentioned above)

#jira UE-150069
#preflight 634571214a5cc23dd6d8d9a5
#rb Jason.Nadro
#rb Yuriy.ODonnell

[CL 22457384 by dan elksnitis in ue5-main branch]
2022-10-11 10:06:40 -04:00
Arne Schober
6ddc4d3c47 Only try and check for a matching expression to error on when we at least have one result in the Expressions Array as there might be cases where we pass GraphCompilation but than later get errors from the backend compiler which do not have a coresponding entry in the expression array.
#preflight trivial

[CL 22400932 by Arne Schober in ue5-main branch]
2022-10-07 10:48:13 -04:00
Arne Schober
9073930315 M - Implement double click on MaterialEditor Errors to jump to the MaterialNode (if any) that caused the error.
#preflight 633dcca7a712a61df1f5d5b1

[CL 22360144 by Arne Schober in ue5-main branch]
2022-10-05 14:34:18 -04:00
brooke hubert
a6cafe3c85 Fix a crash when reverting files, caused by assert firing IsChildOf changes as assets are removed from the registry
#preflight 63373bb60d2b0d7bd8b065c7
#Jira UE-165191
#rb francis.hurteau

[CL 22286640 by brooke hubert in ue5-main branch]
2022-09-30 23:10:41 -04:00
charles derousiers
0071083e03 Remove Strata nodes & material functions from the material contextual menu when Strata is disabled.
#rb none
#jira none
#preflight 633598e1e410691606b95054
[FYI] sebastien.hillaire

[CL 22261389 by charles derousiers in ue5-main branch]
2022-09-29 20:57:36 -04:00
massimo tristano
d4dc5197f1 Fix for material editor crash that may occur when users a platform is loaded but not valid due to the users manually disabling individual platform/plugins.
#jira UE-162898
#rb josie.yang
#preflight 633437627b582f58ab0ce505

[CL 22260910 by massimo tristano in ue5-main branch]
2022-09-29 20:38:14 -04:00
jeremy moore
9657b87388 Add nanite material override setting to material and material instances.
If this is set, and we are rendering a nanite mesh then we use the override material.
Removed nanite override materials from mesh components.
Material override serialization is specialized so that we don't cook out override materials on non-nanite platforms.
#rb jason.nadro, matt.peters, francis.hurteau
#preflight 6334554b665f6b8f7f770a9b

[CL 22240746 by jeremy moore in ue5-main branch]
2022-09-28 22:31:20 -04:00
massimo tristano
72aea7736e Fix crash when copy pasting nodes in the Material Editor.
#jira UE-164139
#rb jeremy.moore
#preflight 6334375b10030508062ea74d

[CL 22232296 by massimo tristano in ue5-main branch]
2022-09-28 17:58:06 -04:00
bryan sefcik
b93a6cf7ed Pass 1 on editor include fixes:
Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631e283bec5b0c765fc0ffdb

[CL 21960084 by bryan sefcik in ue5-main branch]
2022-09-11 18:33:06 -04:00
bryan sefcik
cb0456c6d4 Cleaned up build.cs files by removing any include paths that were already being added by UBT. This was done to help identify how include paths are being added and to help with future refactoring.
#jira
#preflight 631a5c04967ffc68fbf0dd8f

[CL 21911226 by bryan sefcik in ue5-main branch]
2022-09-08 21:44:02 -04:00
Charles deRousiers
5ef5c3f21d New material created with Strata enable, no longer contains a legacy conversion but a slab node instead.
#rb none
#jira none
#preflight 63087aab3042e94f9f7ef5fd
#fyi sebastien.hillaire

[CL 21586932 by Charles deRousiers in ue5-main branch]
2022-08-26 04:06:24 -04:00