mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 08:14:12 +00:00
Linter fix
This commit is contained in:
parent
fc19ab58fb
commit
25cb7bf7e4
@ -40,7 +40,7 @@ pub struct ShaderConstants {
|
||||
}
|
||||
|
||||
pub fn saturate(x: f32) -> f32 {
|
||||
x.max(0.0).min(1.0)
|
||||
x.clamp(0.0, 1.0)
|
||||
}
|
||||
|
||||
pub fn pow(v: Vec3, power: f32) -> Vec3 {
|
||||
|
Loading…
Reference in New Issue
Block a user