bevy/tools/publish.sh

72 lines
1.2 KiB
Bash
Raw Normal View History

2020-08-10 01:32:03 +00:00
# if crate A depends on crate B, B must come before A in this list
2020-08-10 00:58:56 +00:00
crates=(
bevy_utils/macros
2020-09-19 22:29:08 +00:00
bevy_utils
bevy_ptr
bevy_macro_utils
2020-08-10 01:32:03 +00:00
bevy_derive
bevy_math
2020-09-19 22:29:08 +00:00
bevy_tasks
2022-04-15 18:05:37 +00:00
bevy_reflect/bevy_reflect_derive
bevy_reflect
2020-12-19 19:28:00 +00:00
bevy_ecs/macros
2020-08-10 01:32:03 +00:00
bevy_ecs
2020-08-10 00:58:56 +00:00
bevy_app
bevy_time
2020-12-19 19:28:00 +00:00
bevy_log
bevy_dynamic_plugin
2020-08-10 00:58:56 +00:00
bevy_asset
bevy_audio
bevy_core
bevy_diagnostic
2022-04-15 18:05:37 +00:00
bevy_hierarchy
2020-08-10 01:32:03 +00:00
bevy_transform
bevy_window
bevy_encase_derive
bevy_render/macros
Generate vertex tangents using mikktspace (#3872) # Objective Models can be produced that do not have vertex tangents but do have normal map textures. The tangents can be generated. There is a way that the vertex tangents can be generated to be exactly invertible to avoid introducing error when recreating the normals in the fragment shader. ## Solution - After attempts to get https://github.com/gltf-rs/mikktspace to integrate simple glam changes and version bumps, and releases of that crate taking weeks / not being made (no offense intended to the authors/maintainers, bevy just has its own timelines and needs to take care of) it was decided to fork that repository. The following steps were taken: - mikktspace was forked to https://github.com/bevyengine/mikktspace in order to preserve the repository's history in case the original is ever taken down - The README in that repo was edited to add a note stating from where the repository was forked and explaining why - The repo was locked for changes as its only purpose is historical - The repo was integrated into the bevy repo using `git subtree add --prefix crates/bevy_mikktspace git@github.com:bevyengine/mikktspace.git master` - In `bevy_mikktspace`: - The travis configuration was removed - `cargo fmt` was run - The `Cargo.toml` was conformed to bevy's (just adding bevy to the keywords, changing the homepage and repository, changing the version to 0.7.0-dev - importantly the license is exactly the same) - Remove the features, remove `nalgebra` entirely, only use `glam`, suppress clippy. - This was necessary because our CI runs clippy with `--all-features` and the `nalgebra` and `glam` features are mutually exclusive, plus I don't want to modify this highly numerically-sensitive code just to appease clippy and diverge even more from upstream. - Rebase https://github.com/bevyengine/bevy/pull/1795 - @jakobhellermann said it was fine to copy and paste but it ended up being almost exactly the same with just a couple of adjustments when validating correctness so I decided to actually rebase it and then build on top of it. - Use the exact same fragment shader code to ensure correct normal mapping. - Tested with both https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/NormalTangentMirrorTest which has vertex tangents and https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/NormalTangentTest which requires vertex tangent generation Co-authored-by: alteous <alteous@outlook.com>
2022-05-31 22:53:54 +00:00
bevy_mikktspace
2020-08-10 01:32:03 +00:00
bevy_render
bevy_core_pipeline
2020-08-10 00:58:56 +00:00
bevy_input
2020-09-19 22:29:08 +00:00
bevy_gilrs
2022-04-15 18:05:37 +00:00
bevy_animation
2020-08-10 00:58:56 +00:00
bevy_pbr
2020-11-03 21:34:00 +00:00
bevy_gltf
2020-08-10 00:58:56 +00:00
bevy_scene
bevy_sprite
Immediate Mode Line/Gizmo Drawing (#6529) # Objective Add a convenient immediate mode drawing API for visual debugging. Fixes #5619 Alternative to #1625 Partial alternative to #5734 Based off https://github.com/Toqozz/bevy_debug_lines with some changes: * Simultaneous support for 2D and 3D. * Methods for basic shapes; circles, spheres, rectangles, boxes, etc. * 2D methods. * Removed durations. Seemed niche, and can be handled by users. <details> <summary>Performance</summary> Stress tested using Bevy's recommended optimization settings for the dev profile with the following command. ```bash cargo run --example many_debug_lines \ --config "profile.dev.package.\"*\".opt-level=3" \ --config "profile.dev.opt-level=1" ``` I dipped to 65-70 FPS at 300,000 lines CPU: 3700x RAM Speed: 3200 Mhz GPU: 2070 super - probably not very relevant, mostly cpu/memory bound </details> <details> <summary>Fancy bloom screenshot</summary> ![Screenshot_20230207_155033](https://user-images.githubusercontent.com/29694403/217291980-f1e0500e-7a14-4131-8c96-eaaaf52596ae.png) </details> ## Changelog * Added `GizmoPlugin` * Added `Gizmos` system parameter for drawing lines and wireshapes. ### TODO - [ ] Update changelog - [x] Update performance numbers - [x] Add credit to PR description ### Future work - Cache rendering primitives instead of constructing them out of line segments each frame. - Support for drawing solid meshes - Interactions. (See [bevy_mod_gizmos](https://github.com/LiamGallagher737/bevy_mod_gizmos)) - Fancier line drawing. (See [bevy_polyline](https://github.com/ForesightMiningSoftwareCorporation/bevy_polyline)) - Support for `RenderLayers` - Display gizmos for a certain duration. Currently everything displays for one frame (ie. immediate mode) - Changing settings per drawn item like drawing on top or drawing to different `RenderLayers` Co-Authored By: @lassade <felipe.jorge.pereira@gmail.com> Co-Authored By: @The5-1 <agaku@hotmail.de> Co-Authored By: @Toqozz <toqoz@hotmail.com> Co-Authored By: @nicopap <nico@nicopap.ch> --------- Co-authored-by: Robert Swain <robert.swain@gmail.com> Co-authored-by: IceSentry <c.giguere42@gmail.com> Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2023-03-20 20:57:54 +00:00
bevy_gizmos
2020-08-10 00:58:56 +00:00
bevy_text
bevy_a11y
2020-08-10 00:58:56 +00:00
bevy_ui
bevy_winit
2020-12-19 19:28:00 +00:00
bevy_internal
bevy_dylib
2020-08-10 00:58:56 +00:00
)
if [ -n "$(git status --porcelain)" ]; then
echo "You have local changes!"
exit 1
fi
pushd crates
2020-08-10 00:58:56 +00:00
for crate in "${crates[@]}"
do
echo "Publishing ${crate}"
2023-03-06 10:38:45 +00:00
cp ../LICENSE-MIT "$crate"
cp ../LICENSE-APACHE "$crate"
pushd "$crate"
git add LICENSE-MIT LICENSE-APACHE
cargo publish --no-verify --allow-dirty
popd
2020-11-03 21:34:00 +00:00
sleep 20
2020-08-10 01:32:03 +00:00
done
popd
echo "Publishing root crate"
cargo publish --allow-dirty
echo "Cleaning local state"
git reset HEAD --hard