Cargo Features
[dependencies]
bevy_water = { version = "0.18.1", default-features = false, features = ["easings", "embed_shaders", "file_watcher", "inspector", "debug", "atmosphere", "ssr", "depth_prepass", "image_utils", "webgl2", "webgpu"] }
- default = depth_prepass, embed_shaders, image_utils, webgl2
-
These default features are set whenever
bevy_wateris added withoutsomewhere in the dependency tree.default-features = false - easings = bevy_easings
-
Enable Bevy Easings support.
Affects
water::WaterHeightEasingSettings,water::update_water_height… - embed_shaders default
-
Embed the shaders at compile-time.
- file_watcher
-
file/embed watcher
Enables embedded_watcher and file_watcher of bevy
- inspector = bevy-inspector-egui
-
Enable inspector in examples.
- debug
-
Enable debug lines in examples.
- atmosphere
-
Enable bevy atmosphere support in the examples.
- ssr = depth_prepass
-
Enable Screen Space Reflections support.
- depth_prepass default ssr?
-
Enable DepthPrepass in examples.
- image_utils default
-
Include ImageUtils
- webgl2 default
-
Select WebGL2 or WebGPU support.
Use webgl2 for native builds (non-wasm). - webgpu
-
bevy:
Enable support for WebGPU in Wasm. When enabled, this feature will override the
webgl2feature and you won't be able to run Wasm builds with WebGL2, only with WebGPU.
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.