You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Updated ACESOutputTransformsRGBD65 so ACESOutputTransformsRGBD65(0.18)=0.18, just like FilmToneMap does. This helped to get similar brightness between these 2 tonemappers and should be useful for people who would like to use ACES, even in SDR. #rb eric.renaudhoude rod.bogart #preflight 630652115366f61a42c3fbe7 #jira UE-151467 [CL 21559813 by benjamin rouveyrol in ue5-main branch]
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "PostProcess/PostProcessEyeAdaptation.h"
|
|
#include "ScreenPass.h"
|
|
#include "OverridePassSequence.h"
|
|
#include "Math/Halton.h"
|
|
|
|
BEGIN_SHADER_PARAMETER_STRUCT(FDeviceEncodingOnlyOutputDeviceParameters, )
|
|
SHADER_PARAMETER(FVector3f, InverseGamma)
|
|
SHADER_PARAMETER(uint32, OutputDevice)
|
|
SHADER_PARAMETER(uint32, OutputGamut)
|
|
SHADER_PARAMETER(float, OutputMaxLuminance)
|
|
END_SHADER_PARAMETER_STRUCT()
|
|
|
|
FDeviceEncodingOnlyOutputDeviceParameters GetDeviceEncodingOnlyOutputDeviceParameters(const FSceneViewFamily& Family);
|
|
|
|
struct FDeviceEncodingOnlyInputs
|
|
{
|
|
// [Optional] Render to the specified output. If invalid, a new texture is created and returned.
|
|
FScreenPassRenderTarget OverrideOutput;
|
|
|
|
// [Required] HDR scene color to tonemap.
|
|
FScreenPassTexture SceneColor;
|
|
|
|
// Whether to leave the final output in HDR.
|
|
bool bOutputInHDR = false;
|
|
};
|
|
|
|
FScreenPassTexture AddDeviceEncodingOnlyPass(FRDGBuilder& GraphBuilder, const FViewInfo& View, const FDeviceEncodingOnlyInputs& Inputs);
|