CameraAttributes

继承: Resource < RefCounted < Object

派生: CameraAttributesPhysical, CameraAttributesPractical

摄像机设置的父类。

描述

控制摄像机特定的属性,例如景深和曝光覆盖。

WorldEnvironment中使用时,它提供曝光、自动曝光和景深的默认设置,所有摄像机都将使用这些设置,而没有自己的CameraAttributes,包括编辑器摄像机。在Camera中使用时,它将覆盖WorldEnvironment中设置的任何CameraAttributes。在VoxelGILightmass中使用时,将仅使用曝光设置。

有关一般3D环境设置,请参阅Environment

这是一个纯虚拟类,由CameraAttributesPhysicalCameraAttributesPractical继承。

属性


属性说明

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

摄像机传感器的灵敏度,以国际标准化组织测量。更高的灵敏度导致更亮的图像。

如果auto_exposure_enabledtrue,这可以作为曝光补偿的一种方法,将值加倍将曝光值(在EV100中测量)增加1个停止。

注意:仅在启用ProjectSettings.rendering/lights_and_shadows/use_physical_light_units时可用。