Commit Graph

684 Commits

Author SHA1 Message Date
Florin Pascu
106ea7508c Preparation changes for removing FeatureLevel from World
FeatureLevel is Deprecated
Add Setter/Getter for FeatureLevel
NextStep: Make GetFeatureLevel returns DDSPI::GetFeatureLevel, remove FeatureLevel memberfrom UWorld
#jira UE-168551
#rb christopher.waters
#preflight 63ff5e49f43e53f6811c86a4

[CL 24461796 by Florin Pascu in ue5-main branch]
2023-03-01 09:41:33 -05:00
graham wihlidal
9ca9010fd4 Fixes to make COTF recompile shaders work correctly for mesh and material shaders, and also fixed ODSC to properly compile material shader permutations.
#rb jason.nadro, arciel.rekman
#fyi brian.karis, rune.stubbe, jamie.hayes, kryzstof.narkowicz, daniel.wright, yuriy.odonnell
#preflight skip

[CL 24430265 by graham wihlidal in ue5-main branch]
2023-02-27 15:07:18 -05:00
jamie hayes
14f3cf4674 Rename "Max World Position Offset Distance" to "Max World Position Offset Displacement" to avoid confusing it with "World Position Offset Disable Distance"
#rb kevin.ortegren
#jira UE-178135
#rnx
#preflight 63f4f76d977ceed915cb3d5b

[CL 24368841 by jamie hayes in ue5-main branch]
2023-02-22 16:02:48 -05:00
charles derousiers
0fad76c4d7 Rename all user/editor-facing Strata name into Substrate.
This CL address only user-facing part, i.e. Property field, view modes, tool tips, ...) mentioning Strata. All internal (host code, shaders code, CVars) still contains the 'Strata' name.

#rb sebastien.hillaire
#jira UE-175169
#preflight 63f4db68cf37615300e71db5
#lockdown juan.canada

[CL 24350396 by charles derousiers in ue5-main branch]
2023-02-21 16:52:23 -05:00
jamie hayes
2da64290f7 Add MaxWorldPositionOffsetDistance to materials and use it to both clamp WorldPositionOffset to a fixed distance and to extend culling bounds of meshes (including cluster culling bounds of Nanite clusters). Also add a feature to the "Out of Bounds Pixels" visualization to highlight clamped offsets.
#rb ola.olsson, massimo.tristano
#fyi rune.stubbe, graham.wihlidal, brian.karis
#jira UE-175207
#preflight 63e281e7c2257e56f40c0b75

[CL 24051566 by jamie hayes in ue5-main branch]
2023-02-07 12:21:42 -05:00
christopher waters
fc59298fcd Removing GraphEditor private includes via moving SGraphPinEnum.h to the Public folder.
#preflight 63dd804b1b44ee7cb1851048

[CL 24035653 by christopher waters in ue5-main branch]
2023-02-06 14:21:12 -05:00
charles derousiers
5229394cfe Fix incorrect material appearance on raytracing material with Strata enabled
* Add adaptive RT material payload for Strata.
* Centralize all Strata settings in RenderCore/RenderUtils.h to ensure consistency

#rb chris.kulla
#jira none
#preflight 63d43bcff626715201a0ed1d
[FYI] sebastien.hillaire

[CL 23923301 by charles derousiers in ue5-main branch]
2023-01-31 01:12:18 -05:00
massimo tristano
034f1aa37d Ignore empty strings when renaming a material editor node.
This fies a bug causing crash whenmaterial parameter node is renamed to empty string.

#rb josie.yang
#preflight 63d3bdaed21dbe1d2914ad53

[CL 23882036 by massimo tristano in ue5-main branch]
2023-01-27 07:10:58 -05:00
Patrick Boutot
4f85955998 Remove unneeded test to GIntraFrameDebuggingGameThread.
#jira UE-103290
#rb lauren.barnes
#preflight 63c2d13302024f93d8806236

[CL 23728218 by Patrick Boutot in ue5-main branch]
2023-01-16 07:20:04 -05:00
Charles deRousiers
338b5c153b Merge BlendMode and BlendModeStrata to reduce code divergence, and ease maintenance.
#rb sebastien.hillaire
#jira none
#preflight 63c03173c77f50e3b47ed2bd

[CL 23683231 by Charles deRousiers in ue5-main branch]
2023-01-13 14:19:13 -05:00
massimo tristano
7043371116 Added check that reports errors if a parameter is added in a Material bound to different values. This should not be allowed.
Code now checks for this occurrences and reprorts an error message instead of siliently trying to compile the material anyway.

This was causing a crash when two material functions containing the same parameter bound to different values (e.g. different textures) are used in the same material.

#jira UE-150412
#rb jeremy.moore
#preflight 63bc4896bf54fa7b36f61ea5
#preflight 63c13055b0652247507fae3e

[CL 23675742 by massimo tristano in ue5-main branch]
2023-01-13 05:36:38 -05:00
Patrick Boutot
6e02de5817 Fix memstomp with color picker. Prepare SColorPicker for API change. Update AssetViewUtilis::PathColors to use FLinearColor instead of shared pointer. The shared pointer was only needed for the SColorPicker.
#jira UE-173303, UE-173454
#review-23672715 23617361,23611673
#rb daren.cheng
#preflight 63c0b12b1a06fc61059f2fa3

[CL 23672712 by Patrick Boutot in ue5-main branch]
2023-01-12 20:33:08 -05:00
Josie Yang
6c000d7627 Conditionally generate material platform stats for GPUSkinVertexFactory only when UsedWithSkeletalMesh, UsedWithMorphTarget, UsedWithCloth boxes are ticked.
It fixes GPUSkinVertexFactory throwing shader errors when material is not used with skeletal mesh

#rb Jeremy.Moore
#jira UE-173809
#preflight 63bf0553af3ebedd998a7a89

[CL 23662581 by Josie Yang in ue5-main branch]
2023-01-12 09:49:03 -05:00
massimo tristano
1150ca9c4d Fixed crash caused by renaming material graph node to name 1024 character or more long.
#jira UE-172418
#rb kenzo.terelst
#preflight 63be81c5c543a64b7d2476d8

[CL 23643298 by massimo tristano in ue5-main branch]
2023-01-11 04:39:21 -05:00
massimo tristano
9e4720a5bd Undo changelist 23624757.
#preflight 63bd624ad862fdd347d9fda2

[CL 23625729 by massimo tristano in ue5-main branch]
2023-01-10 08:18:49 -05:00
massimo tristano
98e8affa58 Added check that reports errors if a parameter is added in a Material bound to different values. This should not be allowed.
Code now checks for this occurrences and reprorts an error message instead of siliently trying to compile the material anyway.

This was causing a crash when two material functions containing the same parameter bound to different values (e.g. different textures) are used in the same material.

#jira UE-150412
#rb jeremy.moore
#preflight 63bc4896bf54fa7b36f61ea5

[CL 23624757 by massimo tristano in ue5-main branch]
2023-01-10 04:45:56 -05:00
Sebastien Hillaire
9258a18501 Strata - Editor widget - added label to tickbox.
#rb none
#preflight https://horde.devtools.epicgames.com/job/63bd28f8577437afe62f81f6

[CL 23624672 by Sebastien Hillaire in ue5-main branch]
2023-01-10 04:22:18 -05:00
Sebastien Hillaire
d0449ff4bf Strata - editor tab - only use to preview fully simplified materials for now. It will be extended later on according to simplifications and other possible platforms/targets.
#rb jason.nadro
#preflight https://horde.devtools.epicgames.com/job/63bc44cb0b7fcef8b05e2810
#fyi charles.derousiers

[CL 23624607 by Sebastien Hillaire in ue5-main branch]
2023-01-10 03:44:12 -05:00
massimo tristano
a8dc32e175 Undo changelist 23611477
#preflight 63bc20b068068a8bd6e6cca0

[CL 23611763 by massimo tristano in ue5-main branch]
2023-01-09 09:24:30 -05:00
massimo tristano
755e6df654 Added check that reports errors if a parameter is added in a Material bound to different values. This should not be allowed.
Code now checks for this occurrences and reprorts an error message instead of siliently trying to compile the material anyway.

This was causing a crash when two material functions containing the same parameter bound to different values (e.g. different textures) are used in the same material.

#jira UE-150412
#rb jeremy.moore
#preflight 63bc17dd68068a8bd6e4b7bb

[CL 23611477 by massimo tristano in ue5-main branch]
2023-01-09 08:52:28 -05:00
christopher waters
0d5b23e2e3 Adding includes to prepare for a header dependency cleanup.
#preflight 63b5e0bfff7b9ad7030f0f81

[CL 23581920 by christopher waters in ue5-main branch]
2023-01-04 17:07:40 -05:00
christopher waters
f8abec7a8e Material header dependency cleanup
- Removing MaterialAttributeDefinitionMap and MaterialRenderProxy from MaterialShared.h
- Removing MaterialShared from Material.h

#preflight 639cbb35776b61ba3b82f03e

[CL 23541603 by christopher waters in ue5-main branch]
2022-12-16 16:24:02 -05:00
christopher waters
7215f7d4ec Fully moving MaterialDomain to its own header.
#jira none
#preflight 639b4dc335203bc7aa695078

[CL 23531533 by christopher waters in ue5-main branch]
2022-12-15 16:01:51 -05:00
Charles deRousiers
d5a07828ed Fix even more Strata blend mode.
#rb none
#jira none
#preflight 639a1ee98c64c74ac80ff657

[CL 23516373 by Charles deRousiers in ue5-main branch]
2022-12-14 14:47:58 -05:00
Charles deRousiers
47474b943d Abstract Modulate and AlphaHoldout blend mode.
#rb none
#jira none
#preflight 6398b5ca8c64c74ac89c4727

[CL 23495723 by Charles deRousiers in ue5-main branch]
2022-12-13 14:50:14 -05:00