mirror of
https://github.com/bevyengine/bevy
synced 2024-11-13 00:17:27 +00:00
Use wgsl saturate (#6318)
# Objective Use saturate wgsl function now implemented in naga (version 0.10.0). There is now no need for one in utils.wgsl. naga's version allows usage for not only scalars but vectors as well. ## Solution Remove the utils.wgsl saturate function. ## Changelog Remove saturate function from utils.wgsl in favor of saturate in naga v0.10.0.
This commit is contained in:
parent
543465b721
commit
cb5e2d84be
1 changed files with 0 additions and 4 deletions
|
@ -2,10 +2,6 @@
|
|||
|
||||
let PI: f32 = 3.141592653589793;
|
||||
|
||||
fn saturate(value: f32) -> f32 {
|
||||
return clamp(value, 0.0, 1.0);
|
||||
}
|
||||
|
||||
fn hsv2rgb(hue: f32, saturation: f32, value: f32) -> vec3<f32> {
|
||||
let rgb = clamp(
|
||||
abs(
|
||||
|
|
Loading…
Reference in a new issue