Improve Threshold node, move Gamma into Exposure node

This commit is contained in:
Keavon Chambers
2023-02-08 17:48:08 -08:00
parent 8e3480e952
commit 875f2a5cd1
6 changed files with 128 additions and 54 deletions
@@ -278,6 +278,18 @@ impl NumberInput {
self.mode = NumberInputMode::Range;
self
}
pub fn mode_range(mut self) -> Self {
self.mode = NumberInputMode::Range;
self
}
pub fn mode_increment(mut self) -> Self {
self.mode = NumberInputMode::Increment;
self
}
pub fn increment_step(mut self, step: f64) -> Self {
self.step = step;
self
}
pub fn percentage(self) -> Self {
self.min(0.).max(100.).unit("%").display_decimal_places(2)
}