Commit Graph

44 Commits

Author SHA1 Message Date
Gil Gribb
e631ac5ea3 UE4 - support for dithered LOD transitions on static meshes (that don't move) -- also fixed parallel render thread updates for spline meshes
[CL 2524405 by Gil Gribb in Main branch]
2015-04-24 11:20:23 -04:00
Rolando Caloca
a000002820 UE4 - Remove some padding by reordering some members (and reduced sizes)
#codereview Daniel.Wright

[CL 2507381 by Rolando Caloca in Main branch]
2015-04-09 17:24:19 -04:00
Martin Mittring
bc33fe8a1a Made Atmosphere toggleable by Fog, consistently renamed to AtmosphericFog
UE-13368 Atmospheric Fog cannot be toggled to hidden in the Scene Capture 2D's detail settings

[CL 2505715 by Martin Mittring in Main branch]
2015-04-08 15:46:28 -04:00
Rolando Caloca
ce168f2846 UE4 - Renamed depth compare enums, changed some checks to static_asserts
[CL 2498658 by Rolando Caloca in Main branch]
2015-04-01 10:53:07 -04:00
Mike Fricker
114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00
Rolando Caloca
cb32891b3c UE4 - Added sanity checks for Inverted/Normal Depth Buffers; use ERHIZBuffer::NearPlane & FarPlane to switch from 0-1 to 1-0 on Depth
- Added shader define HAS_INVERTED_Z_BUFFER
- Added RHIHasInvertedZBuffer()
#codereview Martin.Mittring, Brian.Karis, Nick.Penwarden

[CL 2497481 by Rolando Caloca in Main branch]
2015-03-31 14:02:45 -04:00
Marcus Wassmer
2cd3355b99 Add MRT clear value binding to the RHI. This allows parallel rendering platforms to propagate clear color values across parallel execution boundaries for platforms which require low level control over hardware clears.
Also add many explicit calls to CopyToResolveTarget to indicate the transition of a render target to be able to be used as an SRV.  Soon to be replaced by a more specific RHI function.
Added r.CheckSRVTransitions for D3D11 on windows to check if any of these transition are missing.
Fixes a bug with RHIThreadFence when using PLATFORM_SUPPORTS_PARALLEL_RHI_EXECUTE
PLATFORM_SUPPORTS_PARALLEL_RHI_EXECUTE on PS4 now supports CMASK and HTILE enabled buffers.
#codereview lee.clark,gil.gribb,rolando.caloca,daniel.wright

[CL 2420986 by Marcus Wassmer in Main branch]
2015-01-27 16:14:50 -05:00
Martin Mittring
8fcc979523 shadow projection code cleanup, single constructor, accessor functions for some members
[CL 2418138 by Martin Mittring in Main branch]
2015-01-25 13:58:27 -05:00
Michael Noland
7dea784698 Rendering: Add a project-configurable translucent sort policy (WIP)
r.TranslucentSortPolicy can take the following values:
  0: Sort based on distance from camera centerpoint to bounding sphere centerpoint. (default, best for 3D games)
  1: Sort based on the post-projection Z distance to the camera.
  2: Sort based on the projection onto a fixed axis. (best for 2D games)

[CL 2385918 by Michael Noland in Main branch]
2014-12-11 14:44:40 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Daniel Wright
b4c700abeb Removed DrawDynamicElements, PreRenderView and dependencies. These have been disabled since 11/04, and the GetDynamicMeshElements path is now the only path for dynamic mesh rendering.
[CL 2370254 by Daniel Wright in Main branch]
2014-11-25 17:56:43 -05:00
Martin Mittring
2f061e5a88 cleanup cvar help, dump current state when using "cvar ?"
[CL 2366438 by Martin Mittring in Main branch]
2014-11-20 12:36:32 -05:00
Rolando Caloca
d8a576970e UE4 - Remove Color parameter on draw events (DEC_*)
[CL 2334566 by Rolando Caloca in Main branch]
2014-10-20 10:43:43 -04:00
Gil Gribb
4e8ea7a208 UE4 - auto complete, comments
[CL 2321079 by Gil Gribb in Main branch]
2014-10-07 07:21:22 -04:00
Gil Gribb
14a6cbc69e UE4 - Use perfect forwarding for task graph, plus some lambda work for shadow rendering
[CL 2319733 by Gil Gribb in Main branch]
2014-10-06 10:05:28 -04:00
Gil Gribb
40e11af76d UE4 - Split Xbox RHI off. Deffered contexts for XB1, parallel velocity rendering fixed and reenabled.RHIThread on by default on platforms that support it.
[CL 2317406 by Gil Gribb in Main branch]
2014-10-02 11:20:07 -04:00
Gil Gribb
d3b0d2b864 UE4 - parallized the relevance part of init views, reducing that time to about 1/3 of its previous value. This isn't on the critical path for rhi thread platforms, and is currently disabled.
[CL 2298401 by Gil Gribb in Main branch]
2014-09-15 13:41:48 -04:00
Gil Gribb
598cbb659c UE4 - allow draw events to work in parallel rendering, some flush tweaks
[CL 2293700 by Gil Gribb in Main branch]
2014-09-11 09:38:38 -04:00
Gil Gribb
9978428b65 UE4 - RHI thread prototype (PS4 only so far)
[CL 2283021 by Gil Gribb in Main branch]
2014-09-03 10:52:00 -04:00
Nick Penwarden
decb55cdd6 Add PolicyContext to avoid global variables during shadow rendering
[CL 2277869 by Nick Penwarden in Main branch]
2014-08-29 13:40:49 -04:00
Graeme Thornton
df9dbd5ae3 Continued in-editor mobile preview work
- Removed default shader platform parameter from GetGlobalShaderMap()
 - Added an inline overload of GetGlobalShaderMap() that takes a feature level instead, and translates to the correct shader platform
 - Cached feature level on FSceneView for faster access
 - Cached shader map on FViewInfo for faster access
 - Cached featurelevel/shadermap on rendering composition graph execution context, for faster access

Fixed a couple of crashes when switching feature level dynamically
 - Needed to allow certain shader permutations to be generated if feature level was ES2, but still on a PC platform. (i.e. hitproxy shaders, and basepass shaders used by editor primitives system)

#codereview Nick.Penwarden

[CL 2275937 by Graeme Thornton in Main branch]
2014-08-28 06:22:54 -04:00
Rolando Caloca
14cc8f09a3 UE4 - Integrate
- Addes 3_1 define on shaders
- Fixes GL packed uniforms array size incorrect assert
- Disallows running the editor with -featureleveles2
- r.MobileHDR is now read-only
- Moved some checks from SM3 to SM4

[CL 2270866 by Rolando Caloca in Main branch]
2014-08-25 14:41:54 -04:00
Mikolaj Sieluzycki
cfaf45ac58 Header cleanup: Engine module, public headers.
[CL 2265766 by Mikolaj Sieluzycki in Main branch]
2014-08-21 06:03:00 -04:00
Graeme Thornton
bcde0d05c2 Mobile Preview
* More removal of GRHIFeatureLevel and GRHIShaderPlatform

[CL 2262530 by Graeme Thornton in Main branch]
2014-08-19 10:41:34 -04:00
Gil Gribb
2e53589462 UE4 - remove "custom RHI commands", fix a few bugs with GDME.
[CL 2256307 by Gil Gribb in Main branch]
2014-08-14 11:24:24 -04:00