You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Also removed some unreferenced functions that adding 'override' revealed PR #1002 -- Thank you, Omar007! [CL 2498415 by Mike Fricker in Main branch]
55 lines
2.1 KiB
C++
55 lines
2.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
/*=============================================================================
|
|
ScreenSpaceReflections.h: Post processing Screen Space Reflections implementation.
|
|
=============================================================================*/
|
|
|
|
#pragma once
|
|
|
|
#include "RenderingCompositionGraph.h"
|
|
|
|
// derives from TRenderingCompositePassBase<InputCount, OutputCount>
|
|
class FRCPassPostProcessDepthDownSample : public TRenderingCompositePassBase<1, 1>
|
|
{
|
|
public:
|
|
// interface FRenderingCompositePass ---------
|
|
virtual void Process(FRenderingCompositePassContext& Context) override;
|
|
virtual void Release() override { delete this; }
|
|
virtual FPooledRenderTargetDesc ComputeOutputDesc(EPassOutputId InPassOutputId) const override;
|
|
};
|
|
|
|
// ePId_Input0: half res scene color
|
|
// ePId_Input1: half res scene depth
|
|
// derives from TRenderingCompositePassBase<InputCount, OutputCount>
|
|
class FRCPassPostProcessScreenSpaceReflections : public TRenderingCompositePassBase<2, 1>
|
|
{
|
|
public:
|
|
FRCPassPostProcessScreenSpaceReflections( bool InPrevFrame )
|
|
: bPrevFrame( InPrevFrame )
|
|
{}
|
|
|
|
// interface FRenderingCompositePass ---------
|
|
virtual void Process(FRenderingCompositePassContext& Context) override;
|
|
virtual void Release() override { delete this; }
|
|
virtual FPooledRenderTargetDesc ComputeOutputDesc(EPassOutputId InPassOutputId) const override;
|
|
|
|
private:
|
|
bool bPrevFrame;
|
|
};
|
|
|
|
|
|
// ePId_Input0: half res scene color
|
|
// derives from TRenderingCompositePassBase<InputCount, OutputCount>
|
|
class FRCPassPostProcessApplyScreenSpaceReflections : public TRenderingCompositePassBase<2, 1>
|
|
{
|
|
public:
|
|
// interface FRenderingCompositePass ---------
|
|
virtual void Process(FRenderingCompositePassContext& Context) override;
|
|
virtual void Release() override { delete this; }
|
|
virtual FPooledRenderTargetDesc ComputeOutputDesc(EPassOutputId InPassOutputId) const override;
|
|
};
|
|
|
|
void ScreenSpaceReflections(FRHICommandListImmediate& RHICmdList, FViewInfo& View, TRefCountPtr<IPooledRenderTarget>& SSROutput);
|
|
|
|
bool DoScreenSpaceReflections(const FViewInfo& View);
|