mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
34 lines
2.6 KiB
XML
34 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="CameraAttributes" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Parent class for camera settings.
|
|
</brief_description>
|
|
<description>
|
|
Controls camera-specific attributes such as depth of field and exposure override.
|
|
When used in a [WorldEnvironment] it provides default settings for exposure, auto-exposure, and depth of field that will be used by all cameras without their own [CameraAttributes], including the editor camera. When used in a [Camera3D] it will override any [CameraAttributes] set in the [WorldEnvironment]. When used in [VoxelGI] or [LightmapGI], only the exposure settings will be used.
|
|
See also [Environment] for general 3D environment settings.
|
|
This is a pure virtual class that is inherited by [CameraAttributesPhysical] and [CameraAttributesPractical].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="auto_exposure_enabled" type="bool" setter="set_auto_exposure_enabled" getter="is_auto_exposure_enabled" default="false">
|
|
If [code]true[/code], enables the tonemapping auto exposure mode of the scene renderer. If [code]true[/code], the renderer will automatically determine the exposure setting to adapt to the scene's illumination and the observed light.
|
|
</member>
|
|
<member name="auto_exposure_scale" type="float" setter="set_auto_exposure_scale" getter="get_auto_exposure_scale" default="0.4">
|
|
The scale of the auto exposure effect. Affects the intensity of auto exposure.
|
|
</member>
|
|
<member name="auto_exposure_speed" type="float" setter="set_auto_exposure_speed" getter="get_auto_exposure_speed" default="0.5">
|
|
The speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
|
|
</member>
|
|
<member name="exposure_multiplier" type="float" setter="set_exposure_multiplier" getter="get_exposure_multiplier" default="1.0">
|
|
Multiplier for the exposure amount. A higher value results in a brighter image.
|
|
</member>
|
|
<member name="exposure_sensitivity" type="float" setter="set_exposure_sensitivity" getter="get_exposure_sensitivity" default="100.0">
|
|
Sensitivity of camera sensors, measured in ISO. A higher sensitivity results in a brighter image.
|
|
If [member auto_exposure_enabled] is [code]true[/code], this can be used as a method of exposure compensation, doubling the value will increase the exposure value (measured in EV100) by 1 stop.
|
|
[b]Note:[/b] Only available when [member ProjectSettings.rendering/lights_and_shadows/use_physical_light_units] is enabled.
|
|
</member>
|
|
</members>
|
|
</class>
|