Commit Graph

31 Commits

Author SHA1 Message Date
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
Gil Gribb
35cf42566a UE4 - merge GDC branch, code @2465640 to main
[CL 2468685 by Gil Gribb in Main branch]
2015-03-04 08:31:40 -05:00
Allan Bentham
4dc5582a40 Fix for UE-7660 - Grid in orthographic view becomes distorted in Preview Rendering Level ES2
- Forward renderer clears background color in editor mode.
- Remove TAA jitter from proj matrices after ES2 TAA post process completes. (allows stable rendering of editor primitives)
- Moved ES2 post process editor composite primitive pass to after tonemap. (fixes incorrect grid colour)
- Add opacity mask for editor prim materials to forward base pass shader. (fixes perspective grid rendering)
- Add Basic ES2 post process pass for !mobileHDR scenario, enabling editor's primitives to still be rendered.
- DrawNewGrid only bails out if the material it's about to use hasnt compiled. (allows ES2 to render 'texture solution' grid implementation)
- Prevent some view elements drawing 2x when ShowFlags.CompositeEditorPrimitives == true.

#codereview nick.penwarden

[CL 2413899 by Allan Bentham in Main branch]
2015-01-21 11:48:05 -05:00
Allan Bentham
2261741dcd fix for UE-7290
Editor primitives use forward basepass when ES2 feature level is active.

#codereview nick.penwarden

[CL 2404705 by Allan Bentham in Main branch]
2015-01-13 10:44:59 -05:00
Nick Whiting
246f388293 #oculus Integration of 0.4.4 Oculus runtimes, adding support for Play in VR mode in the editor
[CL 2383821 by Nick Whiting in Main branch]
2014-12-10 12:44:21 -05:00
Allan Bentham
cd3bd4840f ES2 post process will upscale if UnscaledViewRect is larger than ViewRect (which only occurs when using ES2 emulation).
Fixes UE-5594

#codereview nick.penwarden

[CL 2380312 by Allan Bentham in Main branch]
2014-12-08 09:45:54 -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
Josh Adams
12a38881a0 - Fixed my fix for metal with forward (for non-LDR case this time)
[CL 2341353 by Josh Adams in Main branch]
2014-10-27 14:18:13 -04:00
Josh Adams
1f83e10071 - Fixed depth buffer not clearing in Metal forward renderer
#codereview peter.sauerbrei

[CL 2341313 by Josh Adams in Main branch]
2014-10-27 13:32:31 -04:00
Josh Adams
68001bce9c - Part 2 of Metal MRT support (adding ESimpleRenderTargetMode to make SetRenderTarget() helper usable with SetRenderTargetsAndClear)
- Made a new EmptyVertexDeclaration, for vertex shaders that don't need any inputs (eg, they generate verts based on vertex index)
- Split BeginRenderingSceneColor into 2 functions, adding BeginRenderingGBuffer
#codereview nick.penwarden,martin.mittring,rolando.caloca

[CL 2339044 by Josh Adams in Main branch]
2014-10-23 16:31:43 -04: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
Graeme Thornton
74f9da32d7 Mobile Preview - Removing GRHIShaderPlatform
#codereview Nick.Penwarden

[CL 2321148 by Graeme Thornton in Main branch]
2014-10-07 08:46:39 -04:00
Rolando Caloca
29c68f2eec UE4 - Cascaded shadow maps on mobile/forward
* Still disabled as Metal requires a horrible workaround/hack
* Remove GSupportsGSRenderTargetLayerSwitchingToMips workaround

[CL 2295640 by Rolando Caloca in Main branch]
2014-09-12 17:21:49 -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
Brian Karis
429cb13a76 Fixed velocity rendering in stereo.
Moved velocity rendering outside of post process graph.

[CL 2281975 by Brian Karis in Main branch]
2014-09-02 16:37:25 -04:00
Timothy Lottes
7b39dd523b Hopefully this will fix MSAA for Zen.
[CL 2267881 by Timothy Lottes in Main branch]
2014-08-22 16:40:39 -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
Daniel Wright
ea1d38c1c3 FPrimitiveSceneProxy::PreRenderView / DrawDynamicElements refactored into GetDynamicMeshElements
* Both paths still exist in code during this transition.  The GetDynamicMeshElements path is currently disabled, enable with 'r.UseGetDynamicMeshElements 1'.
* DrawDynamicElements was called once per pass, all sorts of pass-specific cruft had leaked in along with short-term modifications of shared structures (vertex factories and material proxies).  DrawDynamicElements was not const, so a bunch of 'update' type work had leaked in.  Various PreRenderView implementations relied on the view being in the view family.
* GetDynamicMeshElements is called once in InitViews, and the resulting meshes are used in various passes.  GetDynamicMeshElements is const and must not modify the proxy, update work should be pushed to the proxy from the game thread.  GetDynamicMeshElements can be called on views that are not in the view family, which allows a proper view for shadow depth passes.
* View mode override functionality moved out of the individual proxies into a centralized place, ApplyViewModeOverrides
* GPU particles not working yet, FRecastRenderingSceneProxy not implemented

[CL 2253795 by Daniel Wright in Main branch]
2014-08-12 18:24:52 -04:00
Martin Mittring
3faec7cb64 * added comment
[CL 2123794 by Martin Mittring in Main branch]
2014-07-01 16:05:54 -04:00
JJ Hoesing
90a9af94c5 Interim fix for postprocessing of stereo buffers on ES2 devices.
- ES2 postprocessing really needs to have a case that can handle stereo views.  Until that is done, just run the post with the first view expanded to cover the entire stereo buffer.
- This very likely doesn't work in all cases as some of the view values will not be valid, but it works in simple cases.

[CL 2120293 by JJ Hoesing in Main branch]
2014-06-27 20:49:53 -04:00
Gil Gribb
1d50eae0de UE4 - rework RHI user-facing APIs to be safer and incorporate the desired sematics
[CL 2119499 by Gil Gribb in Main branch]
2014-06-27 11:07:13 -04:00
Graeme Thornton
9576f1f08d Create and use auxilliary depth texture in the forward rendering path when simulationous depth test/read isn't supported on the target hardware.
Fixes TTP 335869 - UE4: RENDERING: CRITICAL: EDITOR: CRASH: Occurs when launching mobile preview on the StarterMap using the Asus UX31 Sandy Bridge Ultrabook

[CL 2119491 by Graeme Thornton in Main branch]
2014-06-27 10:57:41 -04:00
Gil Gribb
bc7c8cbca8 UE4 - more work preparing for parallel rendering. Merged the cmd list into the post process context, among other things.
[CL 2103040 by Gil Gribb in Main branch]
2014-06-12 07:13:34 -04:00
Gil Gribb
3de6028e86 UE4: Rearrange RHICmdList toward non-null cmd lists and the final "look"
[CL 2100216 by Gil Gribb in Main branch]
2014-06-10 07:29:49 -04:00
Gil Gribb
fa7226b8fe UE4 - merge first pass at parallel rendering to main
[CL 2095959 by Gil Gribb in Main branch]
2014-06-05 16:38:54 -04:00