added useful note in Exposure docs
@@ -58,7 +58,7 @@ pub enum Exposure {
max_luminance: f32,
},
- /// Specific exposure level.
+ /// Specific exposure level. To "disable" any HDR effects use [`std::f32::consts::E`] as a value.
Manual(f32),
}
@@ -668,6 +668,12 @@ impl CameraBuilder {
self
}
+ /// Sets desired exposure options.
+ pub fn with_exposure(mut self, exposure: Exposure) -> Self {
+ self.exposure = exposure;
+ self
+ }
+
/// Creates new instance of camera.
pub fn build_camera(self) -> Camera {
Camera {
