Files
UnrealEngineUWP/Engine/Source/Runtime/Engine/Private/VolumetricCloudProxy.cpp
Sebastien Hillaire 264b8a1022 Cloud component samples now all default to 1.
Configurable real time capture with respect to cost/latency: sky and cloud captures can be timesliced per face now.
Fixed potential issue in deprecated SetXXX fucntions.
Removed advanced tag from sample count because those are too important to hide by default.

#rb Daniel.Wright
#preflight 62206f4537049be5174a1215

[CL 19239678 by Sebastien Hillaire in ue5-main branch]
2022-03-03 02:47:58 -05:00

36 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
FVolumetricCloudSceneProxy implementation.
=============================================================================*/
#include "VolumetricCloudProxy.h"
#include "Components/VolumetricCloudComponent.h"
FVolumetricCloudSceneProxy::FVolumetricCloudSceneProxy(const UVolumetricCloudComponent* InComponent)
: LayerBottomAltitudeKm(InComponent->LayerBottomAltitude)
, LayerHeightKm(InComponent->LayerHeight)
, TracingStartMaxDistance(InComponent->TracingStartMaxDistance)
, TracingMaxDistance(InComponent->TracingMaxDistance)
, PlanetRadiusKm(InComponent->PlanetRadius)
, GroundAlbedo(InComponent->GroundAlbedo)
, bUsePerSampleAtmosphericLightTransmittance(InComponent->bUsePerSampleAtmosphericLightTransmittance)
, SkyLightCloudBottomOcclusion(InComponent->SkyLightCloudBottomOcclusion)
, ViewSampleCountScale(InComponent->ViewSampleCountScale)
, ReflectionViewSampleCountScale(InComponent->ReflectionViewSampleCountScaleValue)
, ShadowViewSampleCountScale(InComponent->ShadowViewSampleCountScale)
, ShadowReflectionViewSampleCountScale(InComponent->ShadowReflectionViewSampleCountScaleValue)
, ShadowTracingDistance(InComponent->ShadowTracingDistance)
, StopTracingTransmittanceThreshold(InComponent->StopTracingTransmittanceThreshold)
, CloudVolumeMaterial(InComponent->Material)
{
}
FVolumetricCloudSceneProxy::~FVolumetricCloudSceneProxy()
{
}