Commit Graph

325 Commits

Author SHA1 Message Date
charles derousiers
adb3fcb44c Fix Substrate shader compilation issue when running -featureleveles31 with material having glints.
The glints code causes unrolling issue. Glints are normally disabled throught the platform settings, but when running with -featureleveles31, these settings are not taken into account. This CL disabled explicitely glints on platform lower than SM5.

#rb Sebastien.Hillaire
#jira UE-226153

[CL 36765472 by charles derousiers in 5.5 branch]
2024-10-01 20:54:08 -04:00
florin pascu
241d2d8693 Re-enable VK SM5 preview for D3D
Force SM6 for preview VK SM5, Mac SM5
Enable Lumen Support for Preview VK SM5, Mac SM5
Modifying FeatureLevelSwitch to respect the parent ShaderPlatform FeatureLevel and not the one set by preview in order to have consistent material logic with the Shader Platform we are trying to preview

#rb Jack.Porter, jeannoe.morissette

[CL 36758806 by florin pascu in 5.5 branch]
2024-10-01 19:42:38 -04:00
aleksander netzel
f22aed4334 Remove r.RayTracing.RequireSM6.
#rb jeannoe.morissette, mihnea.balta
#jira UE-224569
[RN] Ray tracing is no longer supported on SM5

[CL 36404245 by aleksander netzel in 5.5 branch]
2024-09-18 15:09:04 -04:00
dmitriy dyomin
de2b738ffa Mobile: Added an option to not use PLS and FBF extension on Android OpenGL
Enabling it will force a multipass rendering where GBuffer and SceneColor are resolved to a system memory

[CL 36327269 by dmitriy dyomin in 5.5 branch]
2024-09-17 01:36:59 -04:00
erica stella
e176831124 Add capsule direct shadows to mobile forward renderer
#jira UE-211645
#rb Florin.Pascu

[CL 36013178 by erica stella in ue5-main branch]
2024-09-04 12:38:39 -04:00
erica stella
49e49fb6fd Added movable point lights dynamic shadows in mobile forward renderer
#jira UE-211646
#rb Dmitriy.Dyomin, Florin.Pascu

[CL 36004303 by erica stella in ue5-main branch]
2024-09-04 08:00:07 -04:00
bob tellez
f363f1bdc3 [Backout] - CL35965427
[FYI] erica.stella
Original CL Desc
-----------------------------------------------------------------
Added movable point lights dynamic shadows in mobile forward renderer

#jira UE-211646
#rb Dmitriy.Dyomin, Florin.Pascu

[CL 35974859 by bob tellez in ue5-main branch]
2024-09-03 14:41:29 -04:00
erica stella
cdfe4f12af Added movable point lights dynamic shadows in mobile forward renderer
#jira UE-211646
#rb Dmitriy.Dyomin, Florin.Pascu

[CL 35965433 by erica stella in ue5-main branch]
2024-09-03 09:20:10 -04:00
ola olsson
09402715f6 Added experimental froxel generation and VSM page marking from froxels. Saving some 100us in many cases. Enable using r.Shadow.Virtual.MarkPagesUsingFroxels.
- Froxels are generated from HZB (for free) as well as water depth prepass (not free, but no cost increase).
 - Froxels are 8x8 pixels and as cube-like as possible.
 - Not compatible with page marking from translucent (falls back to per-pixel).

#rb andrew.lauritzen
#jira UE-210716

[CL 35860437 by ola olsson in ue5-main branch]
2024-08-28 06:34:38 -04:00
bob tellez
43aca40fd8 [Backout] - CL35588536
[FYI] erica.stella
Original CL Desc
-----------------------------------------------------------------
Add capsule direct shadows to mobile forward renderer

#jira UE-211645
#rb andrew.lauritzen

[CL 35588978 by bob tellez in ue5-main branch]
2024-08-16 04:17:18 -04:00
erica stella
061b767b15 Add capsule direct shadows to mobile forward renderer
#jira UE-211645
#rb andrew.lauritzen

[CL 35588548 by erica stella in ue5-main branch]
2024-08-16 03:26:47 -04:00
charles derousiers
e2b6a3d981 Force Substrate's max closure count to 1 on SM5 platforms.
#rb Arciel.Rekman, Sebastien.Hillaire

[CL 35362927 by charles derousiers in ue5-main branch]
2024-08-07 03:57:47 -04:00
christopher waters
f8b974b47a Buffer Uploads
- Removing FRHIResourceCreateInfoUploadArray in favor of UE::RHIResourceUtils::Create[XXX]BufferFromArray
- Changing a number of buffer initialization points to use UE::RHIResourceUtils instead of temporary arrays.

#rb Yuriy.ODonnell

[CL 35289740 by christopher waters in ue5-main branch]
2024-08-02 17:45:40 -04:00
eric renaudhoude
f5b1f50b20 Add PF_R16G16_SINT format.
This pixel format is required for (nvidia) optical flow tests & use cases.

#rb Rolando.Caloca
#jira UE-211044

[CL 34844848 by eric renaudhoude in ue5-main branch]
2024-07-16 15:45:38 -04:00
florian penzkofer
93ff0cd4a1 Fix Android Vulkan SM5 issues
RHI_RAYTRACING was always defined to 0.
Lumen was not enabled for SP_VULKAN_SM5_ANDROID

#rb Dmitriy.Dyomin

[CL 34643803 by florian penzkofer in ue5-main branch]
2024-06-25 11:27:22 -04:00
florian penzkofer
688f324056 Mobile SSR: SSR is now done in deferred shading pass.
#rb Dmitriy.Dyomin
#jira UE-120565

[CL 34559883 by florian penzkofer in ue5-main branch]
2024-06-21 09:09:19 -04:00
sebastien hillaire
2415feaccd Added project option for Height fog to match volumetric fog.
Emissive of volumetric fog now follow the distribution of the exp height fog.
Exp fog follow the emissive and albedo of the volumetric fog. And it also uses the same PhaseG and phase function as the volumetric fog (the UI for in scattering is then disabled when the project setting is enabled)
Now volumetric fog looks mostly different due to the lact of shadow casting or difference integration of ambient (through lumen for instance).

This allows for lumen fog sampling to even better match the environment. (currently not including volumetric fog material and local fog volume as this would be a lot more expenssive).

[FYI] Krzysztof.Narkowicz

[CL 34421633 by sebastien hillaire in ue5-main branch]
2024-06-17 10:38:08 -04:00
tiago costa
2d07b192eb Changes to r.RayTracing.EnableOnDemand to work with offline data.
- moved ownership of RayTracingGeometry from FStaticMeshLODResources to FStaticMeshRayTracingProxyLOD so offline data can be streamed-in when ray tracing is toggled on.
- request streaming of ray tracing geometry when it is initally registered or FirstLODIndex changes.
- moved call to ProcessCompletedStreamingRequests(...) so it in every code path of FRayTracingGeometryManager::Tick(...)
- enabled r.RayTracing.EnableOnDemand by default on all platforms.

#rb aleksander.netzel

[CL 34416694 by tiago costa in ue5-main branch]
2024-06-17 05:45:28 -04:00
charles derousiers
a0a936cacc * Fix D3D ES31 not having device profile setup.
* Add Substrate variable for D3D ES31 profile

#rb florin.pascu
[FYI] sebastien.hillaire

[CL 34337838 by charles derousiers in ue5-main branch]
2024-06-13 09:28:25 -04:00
graham wihlidal
8f4a9e47a4 [Nanite-Skinning] Enabled Nanite skinning by default (still experimental), and enabled it on the player character assets in Lyra
#jira UE-210746
#fyi brian.karis, rune.stubbe, jamie.hayes, halfdan.ingvarsson, kiaran.ritchie, andrew.lauritzen

#virtualized

[CL 34289104 by graham wihlidal in ue5-main branch]
2024-06-11 16:22:22 -04:00
tiago costa
d683de11ea Resubmit CL34232076
- added missing TargetPlatform->UsesRayTracing() check in BuildStaticMeshDerivedDataKeySuffix(...)
-----------------------------------------------------------------
Support BLAS streaming when using r.RayTracing.UseReferenceBasedResidency
- serialize FStaticMeshRayTracingProxyLOD buffers into separate FByteBulkData.
    - for the FStaticMeshRayTracingProxy.bUsingRenderingLODs case, this requires shared ownership of resources. FStaticMeshRayTracingProxyLOD owns the RayTracingGeometry while FStaticMeshLODResources owns the VB/IB/etc as usual.
- FRayTracingGeometryManager is responsible for responsible for issuing bulk data read requests and processing the results.
- decoupled r.RayTracing.UseReferenceBasedResidency from r.RayTracing.EnableOnDemand.
- made r.RayTracing.UseReferenceBasedResidency read-only since it affects serialization.

#rb aleksander.netzel, Kenzo.Terelst

[CL 34249031 by tiago costa in ue5-main branch]
2024-06-10 15:29:33 -04:00
tiago costa
6a6ef5b7e5 [Backout] - CL34232076
[FYI] tiago.costa
Original CL Desc
-----------------------------------------------------------------
Support BLAS streaming when using r.RayTracing.UseReferenceBasedResidency
- serialize FStaticMeshRayTracingProxyLOD buffers into separate FByteBulkData.
    - for the FStaticMeshRayTracingProxy.bUsingRenderingLODs case, this requires shared ownership of resources. FStaticMeshRayTracingProxyLOD owns the RayTracingGeometry while FStaticMeshLODResources owns the VB/IB/etc as usual.
- FRayTracingGeometryManager is responsible for responsible for issuing bulk data read requests and processing the results.
- decoupled r.RayTracing.UseReferenceBasedResidency from r.RayTracing.EnableOnDemand.
- made r.RayTracing.UseReferenceBasedResidency read-only since it affects serialization.

#rb aleksander.netzel, Kenzo.Terelst

[CL 34236551 by tiago costa in ue5-main branch]
2024-06-10 10:35:30 -04:00
tiago costa
54484e6a13 Support BLAS streaming when using r.RayTracing.UseReferenceBasedResidency
- serialize FStaticMeshRayTracingProxyLOD buffers into separate FByteBulkData.
    - for the FStaticMeshRayTracingProxy.bUsingRenderingLODs case, this requires shared ownership of resources. FStaticMeshRayTracingProxyLOD owns the RayTracingGeometry while FStaticMeshLODResources owns the VB/IB/etc as usual.
- FRayTracingGeometryManager is responsible for responsible for issuing bulk data read requests and processing the results.
- decoupled r.RayTracing.UseReferenceBasedResidency from r.RayTracing.EnableOnDemand.
- made r.RayTracing.UseReferenceBasedResidency read-only since it affects serialization.

#rb aleksander.netzel, Kenzo.Terelst

[CL 34232090 by tiago costa in ue5-main branch]
2024-06-10 05:56:23 -04:00
graham wihlidal
f547b42cf6 Numerous fixes to Nanite programmable and compute raster disable flags (two sided, etc.)
#jira UE-192509
#fyi rune.stubbe, jamie.hayes, krzysztof.narkowicz
#rb Brian.Karis

[CL 34221934 by graham wihlidal in ue5-main branch]
2024-06-07 22:14:51 -04:00
florian penzkofer
695d4319e6 Support screen space reflections in the mobile renderer.
Supported in forward and deferred. It works without TAA but no denoising is done, so it looks much worse.

At the moment enabling SSR implies doing a depth prepass.

#jira UE-120565
#rb Dmitriy.Dyomin, Florin.Pascu

[CL 34127334 by florian penzkofer in ue5-main branch]
2024-06-05 12:02:30 -04:00