Skip to content

Commit 61ab28d

Browse files
committed
Linter fix
1 parent e43291e commit 61ab28d

File tree

1 file changed

+1
-1
lines changed
  • examples/shaders/shared/src

1 file changed

+1
-1
lines changed

examples/shaders/shared/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct ShaderConstants {
4040
}
4141

4242
pub fn saturate(x: f32) -> f32 {
43-
x.max(0.0).min(1.0)
43+
x.clamp(0.0, 1.0)
4444
}
4545

4646
pub fn pow(v: Vec3, power: f32) -> Vec3 {

0 commit comments

Comments
 (0)