Commit Graph

147 Commits

Author SHA1 Message Date
tiago costa
f23b0d342c Changed EyeAdaptationBuffer to be a StructuredBuffer.
- Avoid need for a sampler.
- On certain platforms exposure values can end up in SGPR instead of VGPR.
- Moved EyeAdaptationBuffer read from tonemapper VS to PS due to limitation of mobile GPUs.

#rb Wei.Liu, Florin.Pascu, Dmitriy.Dyomin
#preflight 63651a02de2c4dbb5daedee6

[CL 23003626 by tiago costa in ue5-main branch]
2022-11-05 22:34:31 -04:00
tiago costa
46f76117da Don't include emissive and translucent materials when calculating illuminance for auto exposure.
- Extract emissive, diffuse and subsurface color right after base pass before lighting is calculated.
- Calculate illuminance before translucent pass.

#rb brian.karis
#preflight skip

[CL 22948892 by tiago costa in ue5-main branch]
2022-11-03 06:03:43 -04:00
tiago costa
5bef1f381b Experimental support for calculating auto exposure without being affected by materials.
- In this initial version luminance used for auto exposure is divided by base color luminance.
    - this doesn't properly take into account specular, reflections, volumetrics, emissive, etc.
- Can be enabled using r.AutoExposure.IgnoreMaterials.

#rb Krzysztof.Narkowicz, Brian.Karis
#preflight skip

[CL 22836851 by tiago costa in ue5-main branch]
2022-10-28 16:07:22 -04:00
Sebastien Hillaire
31e22c4560 Simplified cloud debug to a single CloudDebugViewMode.
Removed sample count view mode now super seeded by CLOUD_DEBUG_SAMPLES.
Only used by compute shader.
Made code common in UpdateCloudParam, empty space skipping slice depth is now computed on cpu and shared.

#rb Jian.Ru
#preflight https://horde.devtools.epicgames.com/job/63563f2ff92c325024ce5871
#preflight https://horde.devtools.epicgames.com/job/635a591a544df973cdde70bf
#swarm https://p4-swarm.epicgames.net/reviews/22690110
Ask me for the perf test link
[FYI] daniel.elliott



#ushell-cherrypick of 22753083 by sebastien.hillaire
manual merge from staging to main

[CL 22807102 by Sebastien Hillaire in ue5-main branch]
2022-10-27 06:37:52 -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
43ae2325c8 Enable Extended Luminance Range for new projects by default
- Fix logic to also apply to projects created from template (doesn't overwrite template defined config if it has one).
- Removed deprecated option in Renderer Settings.
- Cleaned up branches around LuminanceMaxFromLensAttenuation(), since it's already applied inside the function.
- Templates are also updated to use ExtendedDefaultLuminanceRange.

#rb juan.canada
#fyi andreas.suika
#preflight 63344c29c7791417aafeadc7
#jira UE-143838

[CL 22221695 by tiago costa in ue5-main branch]
2022-09-28 10:18:39 -04:00
Sebastien Hillaire
a7634e5b51 Exposure is now applied on some BufferVisualisation mode (those that are HDR only).
Also, removed a random x20 multiplier when visualising SeparateTranslucentRGB.

#jira UE-160233
#preflight https://horde.devtools.epicgames.com/job/62f2281d23003b62a3ede823
#fyi roel.bartstra, matt.hoffman, Rod.Bogart

[CL 21282597 by Sebastien Hillaire in ue5-main branch]
2022-08-09 05:37:22 -04:00
tiago costa
28c79f2360 Control local exposure constract scale for highlights and shadows independently.
#rb Guillaume.Abadie
#preflight 62bc5528e353c20ac245329d

#ROBOMERGE-AUTHOR: tiago.costa
#ROBOMERGE-SOURCE: CL 20874253 via CL 20874263 via CL 20874279
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20876979 by tiago costa in ue5-main branch]
2022-06-29 12:31:43 -04:00
tiago costa
5e575d33bc Don't disable tonemapper when visualizing Nanite or Virtual Shadow Maps.
- The debug views are composited after post processing.

#rb graham.wihlidal
#preflight 62acca5bd71aedcd76763642

[CL 20707874 by tiago costa in ue5-main branch]
2022-06-17 15:00:45 -04:00
zach bethel
a00b40ad3b Deprecated GetRenderTargetItem() from IPooledRenderTarget.
#preflight 624ddb30090236773a1a83e0
#rb luke.thatcher

#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 19655641 via CL 19655653 via CL 19655661
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19657582 by zach bethel in ue5-main branch]
2022-04-06 18:24:24 -04:00
chris kulla
703b25cc16 Path Tracer: re-enable mGPU support
Remove coherent sampler since it would be complicated to support in the mGPU case and isn't really necessary for performance anymore

#rb Jason.Hoerner
#preflight 624b79f09f404234149aec8e

[CL 19617353 by chris kulla in ue5-main branch]
2022-04-04 19:23:28 -04:00
tiago costa
7c8a8ee75c Don't disable AutoExposure when VisualizeGlobalDistanceField is enabled.
- Visualization was updated to apply lighting and now requires auto exposure / postfx.

#jira UE-143712
#rb krzysztof.narkowicz
#preflight 6217af3e8849a7424f5e2cbd
#lockdown juan.canada

#ROBOMERGE-AUTHOR: tiago.costa
#ROBOMERGE-SOURCE: CL 19115110 in //UE5/Release-5.0/... via CL 19115330
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19152901 by tiago costa in ue5-main branch]
2022-02-25 14:22:02 -05:00
tiago costa
7ba5023e71 Rename Local Exposure "Contrast Reduction" to "Contrast Scale"
- Also support contrast scale > 1.

#jira UE-143419
#rb Guillaume.Abadie
#lockdown juan.canada
#preflight 6214ded2a97c2c3348ca3336

#ROBOMERGE-AUTHOR: tiago.costa
#ROBOMERGE-SOURCE: CL 19074464 in //UE5/Release-5.0/... via CL 19090589
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19135312 by tiago costa in ue5-main branch]
2022-02-24 20:07:17 -05:00
Dmitriy Dyomin
6844dd7ec0 Use Basic Eye Adaptation on mobile by default. Saves 0.7ms on S10
r.EyeAdaptationQuality now controls which method can be used, previously it was doing nothing
#rb wei.liu
#jira none
#preflight 621355616c5e44d1ac1f5a73
#robomerge emt2

[CL 19067498 by Dmitriy Dyomin in ue5-main branch]
2022-02-21 04:57:39 -05:00
zach bethel
9996233f7a Removed unused legacy MSAA multi-texture support from IPooledRenderTarget.
- Deprecated legacy members from FPooledRenderTargetDesc.
 - Deprecated ETextureRenderTarget and removed from RDG.
 - TargetableTexture always equals ShaderResourceTexture.
 - Simplified render target pool FindFreeElement.
 - Create pooled buffers and textures with a known state.

#rb graham.wihlidal
#preflight 61f8488568795b2f45852274

#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 18796880 in //UE5/Release-5.0/... via CL 18797840 via CL 18799070
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18799188 by zach bethel in ue5-main branch]
2022-01-31 17:22:31 -05:00
andrew lauritzen
ef2fd132f7 Add VSM projection visualizations to the editor menu
#rb graham.wihlidal
[FYI] ola.olsson
#preflight 61f1a689fc74f46b5645b225

#ROBOMERGE-AUTHOR: andrew.lauritzen
#ROBOMERGE-SOURCE: CL 18757572 in //UE5/Release-5.0/... via CL 18759665 via CL 18760682
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18760914 by andrew lauritzen in ue5-main branch]
2022-01-27 15:49:31 -05:00
zach bethel
0143cb41fa Deprecated defunct legacy transient resource API and removed vestiges.
#preflight 61e0a87c250b9537f7837e74
#rb christopher.waters

#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 18607884 in //UE5/Release-5.0/... via CL 18607913 via CL 18607948
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18607982 by zach bethel in ue5-main branch]
2022-01-13 17:56:22 -05:00
Marc Audy
c43360f47c Eliminate whitespace only differences between Release-Engine-Staging and Release-Engine-Test
#[fyi] Aurel.Cordonnier

#ushell-cherrypick of 18448630 by Marc.Audy
#preflight none

[CL 18483677 by Marc Audy in ue5-main branch]
2021-12-17 03:41:59 -05:00
ola olsson
5772a3fa76 Fixes for HZB culling readback (part-contributed by Ernesto Corvi through UDN) & update shader parameters
#rb Guillaume.Abadie,jason.hoerner
#preflight 61bb15ab58796f05e158e312

#ROBOMERGE-AUTHOR: ola.olsson
#ROBOMERGE-SOURCE: CL 18474585 in //UE5/Release-5.0/... via CL 18480635 via CL 18480717
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18480814 by ola olsson in ue5-main branch]
2021-12-16 18:28:05 -05:00
ola olsson
fe999f870c Fixes for HZB culling readback (part-contributed by Ernesto Corvi through UDN) & update shader parameters
#rb Guillaume.Abadie,jason.hoerner
#preflight 61bb15ab58796f05e158e312

#ROBOMERGE-AUTHOR: ola.olsson
#ROBOMERGE-SOURCE: CL 18474585 in //UE5/Release-5.0/... via CL 18480635
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18480717 by ola olsson in ue5-release-engine-test branch]
2021-12-16 18:22:06 -05:00
Marc Audy
f512a6d461 Eliminate whitespace only differences between Release-Engine-Staging and Release-Engine-Test
#fyi Aurel.Cordonnier

[CL 18448630 by Marc Audy in ue5-release-engine-test branch]
2021-12-13 15:59:48 -05:00
tiago costa
09ad19466e Fix readback not getting latest available data.
- Need to update index at each iteration.

#rb Rune.Stubbe, Krzysztof.Narkowicz
#preflight 61af9923b841b84301bab88f

#ROBOMERGE-AUTHOR: tiago.costa
#ROBOMERGE-SOURCE: CL 18396940 in //UE5/Release-5.0/... via CL 18396946
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v896-18170469)

[CL 18396958 by tiago costa in ue5-release-engine-test branch]
2021-12-07 13:37:50 -05:00
jon nabozny
cdc65f654f Reland: Fixes motion blur lengths when using time dilation
#rb josie.yang
#lockdown michal.valient
#preflight 614a44526c96990001c47143

#ROBOMERGE-OWNER: jon.nabozny
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 17606608 via CL 17962735 via CL 18364937 via CL 18364960
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18365023 by jon nabozny in ue5-release-engine-test branch]
2021-12-02 23:53:56 -05:00
jon nabozny
9693ad4915 Undo //UE5/Private-Frosty/Engine/... changelist 17586431
#lockdown michal.valient
#preflight revert for build breakage

#ROBOMERGE-OWNER: jon.nabozny
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 17587410 via CL 17948832 via CL 18364580 via CL 18364616
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18364712 by jon nabozny in ue5-release-engine-test branch]
2021-12-02 23:34:52 -05:00
jon nabozny
c418c40de0 Fixes motion blur lengths when using time dilation
#rb josie.yang
#lockdown michal.valient
#preflight 614a1e3259380f0001888d92

#ROBOMERGE-OWNER: jon.nabozny
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 17586431 via CL 17948712 via CL 18364381 via CL 18364522
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18364604 by jon nabozny in ue5-release-engine-test branch]
2021-12-02 23:30:35 -05:00