Fixed light in low quality mode

This commit is contained in:
Marc Garcia Puig 2020-07-31 16:34:28 +02:00
parent 7a413c845a
commit 7df66a98ff
1 changed files with 3 additions and 11 deletions

View File

@ -463,16 +463,7 @@ void ASceneCaptureSensor::BeginPlay()
// Call derived classes to set up their things.
SetUpSceneCaptureComponent(*CaptureComponent2D);
if (bEnablePostProcessingEffects &&
(SceneCaptureSensor_local_ns::GetQualitySettings(GetWorld()) == EQualityLevel::Low))
{
CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_SceneColorHDRNoAlpha;
}
else
{
// LDR is faster than HDR (smaller bitmap array).
CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR;
}
CaptureComponent2D->CaptureSource = ESceneCaptureSource::SCS_FinalColorLDR;
CaptureComponent2D->UpdateContent();
CaptureComponent2D->Activate();
@ -601,7 +592,8 @@ namespace SceneCaptureSensor_local_ns {
ShowFlags.SetAmbientOcclusion(false);
ShowFlags.SetAntiAliasing(false);
ShowFlags.SetVolumetricFog(false); // ShowFlags.SetAtmosphericFog(false);
ShowFlags.SetVolumetricFog(false);
// ShowFlags.SetAtmosphericFog(false);
// ShowFlags.SetAudioRadius(false);
// ShowFlags.SetBillboardSprites(false);
ShowFlags.SetBloom(false);