Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

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()

If true, enables the tonemapping auto exposure mode of the scene renderer. If true, the renderer will automatically determine the exposure setting to adapt to the scene's illumination and the observed light.

Note: Auto-exposure is only supported in the Forward+ rendering method, not Mobile or Compatibility.


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.