1. 程式人生 > >UE4:關閉自動曝光

UE4:關閉自動曝光

虛幻升級到4.11.2,突然發現場景會自動曝光:向光移動,螢幕會慢慢變亮;背光移動,螢幕會慢慢變暗。我個人非常不習慣這種效果,所以一直想關掉。

 所以,接下來是如何關閉:

 在場景中新增一個"Post Process Volume",修改Auto Exposure設定:

 Min  Brightness:0.25

 Max Brightness:0.25

 AutoExposureBias :0.0

         

另外:聽說也可以修改Camera中的PostProcessSettings,我嘗試後發現不行(可能我修改的不對)。以下是我嘗試的兩種修改方式:

a.

Camera->PostProcessSettings.AutoExposureBias = 0.f;

Camera->PostProcessSettings.AutoExposureMinBrightness = 1.f;

Camera->PostProcessSettings.AutoExposureMaxBrightness = 1.f;

b.

FPostProcessSettings post = Camera->PostProcessSettings;
post.AutoExposureBias = 0.f;
post.AutoExposureMinBrightness = 1.f;
post.AutoExposureMaxBrightness = 1.f;
Camera->PostProcessSettings = post;