Files
UnrealEngineUWP/Engine/Source/Runtime/Renderer/Private/ReflectionEnvironment.h
Michal Valient 95d19f95b1 [REVERB] Merging //UE4/Private-Reverb-Development@13832732
#rb graham.wihlidal, rune.stubbe, brian.karis, andrew.lauritzen, jeff.farris

[CL 13834854 by Michal Valient in ue5-main branch]
2020-07-06 18:58:26 -04:00

32 lines
1.5 KiB
C

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
Reflection Environment common declarations
=============================================================================*/
#pragma once
#include "CoreMinimal.h"
#include "RHIDefinitions.h"
#include "ShaderParameters.h"
#include "UniformBuffer.h"
extern bool IsReflectionEnvironmentAvailable(ERHIFeatureLevel::Type InFeatureLevel);
extern bool IsReflectionCaptureAvailable();
BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT(FReflectionUniformParameters,)
SHADER_PARAMETER(FVector4, SkyLightParameters)
SHADER_PARAMETER(float, SkyLightCubemapBrightness)
SHADER_PARAMETER_TEXTURE(TextureCube, SkyLightCubemap)
SHADER_PARAMETER_SAMPLER(SamplerState, SkyLightCubemapSampler)
SHADER_PARAMETER_TEXTURE(TextureCube, SkyLightBlendDestinationCubemap)
SHADER_PARAMETER_SAMPLER(SamplerState, SkyLightBlendDestinationCubemapSampler)
SHADER_PARAMETER_TEXTURE(TextureCubeArray, ReflectionCubemap)
SHADER_PARAMETER_SAMPLER(SamplerState, ReflectionCubemapSampler)
SHADER_PARAMETER_TEXTURE(Texture2D, PreIntegratedGF)
SHADER_PARAMETER_SAMPLER(SamplerState, PreIntegratedGFSampler)
END_GLOBAL_SHADER_PARAMETER_STRUCT()
extern void SetupReflectionUniformParameters(const class FViewInfo& View, FReflectionUniformParameters& OutParameters);
TUniformBufferRef<FReflectionUniformParameters> CreateReflectionUniformBuffer(const class FViewInfo& View, EUniformBufferUsage Usage);