Added fix to OS dependant exposure compensation

This commit is contained in:
Marc Garcia Puig 2020-08-28 15:29:58 +02:00
parent 36ba6216c9
commit 1726e88192
1 changed files with 6 additions and 0 deletions

View File

@ -110,7 +110,13 @@ EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod() const
void ASceneCaptureSensor::SetExposureCompensation(float Compensation)
{
check(CaptureComponent2D != nullptr);
// Looks like windows and linux have different outputs with the
// same exposure compensation
#ifdef PLATFORM_WINDOWS
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation + 2.2;
#else
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation;
#endif
}
float ASceneCaptureSensor::GetExposureCompensation() const