Cargo Features
[dependencies]
bevy_water = { version = "0.15.1", default-features = false, features = ["embed_shaders", "file_watcher", "inspector", "debug", "atmosphere", "ssr", "spectator", "panorbit", "depth_prepass", "image_utils", "webgl2", "webgpu"] }
- default = depth_prepass, embed_shaders, image_utils, webgl2
-
These default features are set whenever
bevy_water
is added without
somewhere in the dependency tree.default-features = false - embed_shaders default
-
Embed the shaders at compile-time.
- file_watcher
-
file/embed watcher
Enables embedded_watcher and file_watcher of bevy
- inspector
-
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.
- spectator
-
Enable bevy_spectator support in the examples.
- panorbit
-
Enable bevy_panorbit_camera support in the examples.
- 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
webgl2
feature and you won't be able to run Wasm builds with WebGL2, only with WebGPU.