CameraAttributes

繼承: Resource < RefCounted < Object

被繼承: CameraAttributesPhysical, CameraAttributesPractical

相機設定的父類。

說明

控制相機的特定屬性,如景深和曝光覆蓋。

當在 WorldEnvironment 中使用時,它提供了曝光、自動曝光、以及景深的預設設置,這些設定將由所有沒有自己的 CameraAttributes 的相機使用,包括編輯器相機。當在 Camera3D 中使用時,它將覆蓋 WorldEnvironment 中設定的任何 CameraAttributes。當在 VoxelGILightmapGI 中使用時,將只會使用曝光設置。

另請參閱 Environment 瞭解一般的 3D 環境設定。

這是一個由 CameraAttributesPhysicalCameraAttributesPractical 繼承的純虛類。

屬性

bool

auto_exposure_enabled

false

float

auto_exposure_scale

0.4

float

auto_exposure_speed

0.5

float

exposure_multiplier

1.0

float

exposure_sensitivity

100.0


屬性說明

bool auto_exposure_enabled = false 🔗

  • void set_auto_exposure_enabled(value: bool)

  • bool is_auto_exposure_enabled()

如果為 true,啟用場景算繪器的色調對應自動曝光模式。如果為 true,算繪器將自動確定曝光設定,以適應場景的照明和觀察到的光線。


float auto_exposure_scale = 0.4 🔗

  • void set_auto_exposure_scale(value: float)

  • float get_auto_exposure_scale()

自動曝光效果的比例。影響自動曝光的強度。


float auto_exposure_speed = 0.5 🔗

  • void set_auto_exposure_speed(value: float)

  • float get_auto_exposure_speed()

自動曝光效果的速度。影響相機執行自動曝光所需的時間。


float exposure_multiplier = 1.0 🔗

  • void set_exposure_multiplier(value: float)

  • float get_exposure_multiplier()

曝光量的乘數。較高的值會產生較亮的圖像。


float exposure_sensitivity = 100.0 🔗

  • void set_exposure_sensitivity(value: float)

  • float get_exposure_sensitivity()

Sensitivity of camera sensors, measured in ISO. A higher sensitivity results in a brighter image.

If auto_exposure_enabled is true, this can be used as a method of exposure compensation, doubling the value will increase the exposure value (measured in EV100) by 1 stop.

Note: Only available when ProjectSettings.rendering/lights_and_shadows/use_physical_light_units is enabled.