Added fix to OS dependant exposure compensation
This commit is contained in:
parent
36ba6216c9
commit
1726e88192
|
@ -110,7 +110,13 @@ EAutoExposureMethod ASceneCaptureSensor::GetExposureMethod() const
|
||||||
void ASceneCaptureSensor::SetExposureCompensation(float Compensation)
|
void ASceneCaptureSensor::SetExposureCompensation(float Compensation)
|
||||||
{
|
{
|
||||||
check(CaptureComponent2D != nullptr);
|
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;
|
CaptureComponent2D->PostProcessSettings.AutoExposureBias = Compensation;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
float ASceneCaptureSensor::GetExposureCompensation() const
|
float ASceneCaptureSensor::GetExposureCompensation() const
|
||||||
|
|
Loading…
Reference in New Issue