mirror of
https://github.com/bevyengine/bevy.git
synced 2026-06-30 15:55:32 -04:00
10e9ec77fb
## Objective Allow testing more features in the `scene_viewer` example. ## Solution Add mesh compression and motion blur options to the command line. Ideally the mesh compression would allow control over individual attributes, but this is enough for basic smoke testing. ```rust /// enable mesh attribute compression #[argh(switch)] mesh_attribute_compression: bool, /// enable mesh index compression #[argh(switch)] mesh_index_compression: bool, /// enable motion blur #[argh(switch)] motion_blur: bool, /// set the motion blur shutter angle #[argh(option)] motion_blur_shutter_angle: Option<f32>, ``` ## Testing ```sh # Mesh compression cargo run --example scene_viewer --features "free_camera bevy_dev_tools" -- --mesh-attribute-compression --mesh-index-compression # Motion blur cargo run --example scene_viewer --features "free_camera bevy_dev_tools" -- "assets//models/animated/Fox.glb" --motion-blur --motion-blur-shutter-angle 10 ```