From 8057806483a771a77fd72ef2d91d17628b23473f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Tue, 20 Apr 2021 00:50:32 +0200 Subject: [PATCH 1/2] start next migration guide --- content/learn/book/migration-guides/0.5-0.6/_index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 content/learn/book/migration-guides/0.5-0.6/_index.md diff --git a/content/learn/book/migration-guides/0.5-0.6/_index.md b/content/learn/book/migration-guides/0.5-0.6/_index.md new file mode 100644 index 0000000000..5a5440220d --- /dev/null +++ b/content/learn/book/migration-guides/0.5-0.6/_index.md @@ -0,0 +1,10 @@ ++++ +title = "0.5 to 0.6" +weight = 1 +sort_by = "weight" +template = "book-section.html" +page_template = "book-section.html" +[extra] +long_title = "Migration Guide: 0.5 to 0.6" ++++ + From 0dcc4c788997ff4d16941a8df533ae49373e99fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Tue, 20 Apr 2021 00:51:09 +0200 Subject: [PATCH 2/2] PointLight renaming https://github.com/bevyengine/bevy/pull/1778 --- .../book/migration-guides/0.5-0.6/_index.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/content/learn/book/migration-guides/0.5-0.6/_index.md b/content/learn/book/migration-guides/0.5-0.6/_index.md index 5a5440220d..b1107dbdcb 100644 --- a/content/learn/book/migration-guides/0.5-0.6/_index.md +++ b/content/learn/book/migration-guides/0.5-0.6/_index.md @@ -8,3 +8,31 @@ page_template = "book-section.html" long_title = "Migration Guide: 0.5 to 0.6" +++ +### `Light` and `LightBundle` are now `PointLight` and `PointLightBundle` + +```rust +// 0.5 +commands.spawn_bundle(LightBundle { + light: Light { + color: Color::YELLOW, + fov: f32::to_radians(60.0), + depth: 0.1..50.0, + intensity: 200.0, + range: 20.0, + }, + ..Default::default() +}); + +// 0.6 +commands.spawn_bundle(PointLightBundle { + point_light: PointLight { + color: Color::YELLOW, + intensity: 200.0, + range: 20.0, + }, + ..Default::default() +}); +``` + +Cleanup on the {{rust_type(type="struct" crate="bevy_pbr" mod="light" version="0.5.0" name="PointLight" no_mod=true)}}, +removing unused fields `fov` and `depth`.