Fix syntax error in camera_attributes_set_exposure documentation

This commit is contained in:
Haoyu Qiu 2024-04-24 14:20:17 +08:00
parent e0f58a3194
commit 84d01347df

View file

@ -92,13 +92,13 @@
Sets the exposure values that will be used by the renderers. The normalization amount is used to bake a given Exposure Value (EV) into rendering calculations to reduce the dynamic range of the scene. Sets the exposure values that will be used by the renderers. The normalization amount is used to bake a given Exposure Value (EV) into rendering calculations to reduce the dynamic range of the scene.
The normalization factor can be calculated from exposure value (EV100) as follows: The normalization factor can be calculated from exposure value (EV100) as follows:
[codeblock] [codeblock]
func get_exposure_normalization(float ev100): func get_exposure_normalization(ev100: float):
return 1.0 / (pow(2.0, ev100) * 1.2) return 1.0 / (pow(2.0, ev100) * 1.2)
[/codeblock] [/codeblock]
The exposure value can be calculated from aperture (in f-stops), shutter speed (in seconds), and sensitivity (in ISO) as follows: The exposure value can be calculated from aperture (in f-stops), shutter speed (in seconds), and sensitivity (in ISO) as follows:
[codeblock] [codeblock]
func get_exposure(float aperture, float shutter_speed, float sensitivity): func get_exposure(aperture: float, shutter_speed: float, sensitivity: float):
return log2((aperture * aperture) / shutterSpeed * (100.0 / sensitivity)) return log((aperture * aperture) / shutter_speed * (100.0 / sensitivity)) / log(2)
[/codeblock] [/codeblock]
</description> </description>
</method> </method>