Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions pkgs/id/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pkgs/id/crates/id-native-shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ license = "MIT OR Apache-2.0"
# Step 2 (this feature set) adds the window/render plugins
# (bevy_window/bevy_winit/bevy_render) together with their flake
# system-library wiring in pkgs/id/nix-common.nix (wayland, X11,
# libxkbcommon, vulkan-loader).
# libxkbcommon, vulkan-loader). The #12657 step-2a scene renderer
# adds bevy_pbr (standard 3D materials) on top of the same wiring.

[dependencies]
anyhow = "1"
bevy = { version = "0.19", default-features = false, features = [
"std",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_render",
"bevy_text",
"bevy_ui",
Expand Down
6 changes: 5 additions & 1 deletion pkgs/id/crates/id-native-shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@
//! and the live `WorldClient` session loop ([`run_session`]) that
//! feeds the renderer through `render::PresentedView`;
//! `tests/live_session.rs` proves the durable-outcome half of the
//! parity criterion against a live host.
//! parity criterion against a live host. The #12657 step-2a scene
//! renderer ([`scene`]) presents validated `scene/1` surfaces as 3D
//! entities beside the text grid; shells without it keep the scene's
//! text projection.

pub mod events;
pub mod form;
pub mod providers;
pub mod render;
pub mod scene;
mod session;

pub use providers::{
Expand Down
6 changes: 5 additions & 1 deletion pkgs/id/crates/id-native-shell/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
//! with Bevy's window/render/UI plugin set (`DefaultPlugins` over the
//! crate's selected features) and the shell's own render plugin
//! ([`id_native_shell::render::ShellRenderPlugin`]), which presents
//! the latest host view as a UI node tree.
//! the latest host view as a UI node tree, plus the scene renderer
//! ([`id_native_shell::scene::SceneRenderPlugin`]), which presents a
//! view's validated `scene/1` surface as 3D entities.
//!
//! With `--node <id> --capability <cap>` the binary also runs the live
//! session: [`id_native_shell::run_session`] joins the world on a
Expand All @@ -22,6 +24,7 @@ use std::sync::Mutex;
use anyhow::{Context, Result, bail};
use bevy::prelude::{App, DefaultPlugins, Res, ResMut, Resource, Startup, Update};
use id_native_shell::render::{PresentedForm, PresentedView, ShellRenderPlugin};
use id_native_shell::scene::SceneRenderPlugin;
use id_native_shell::{
CONTRACT_NAME, CONTRACT_VERSION, LocalBounds, ProviderAdapter, SessionView,
run_session_with_providers,
Expand Down Expand Up @@ -276,6 +279,7 @@ fn main() {
let mut app = App::new();
app.add_plugins(DefaultPlugins)
.add_plugins(ShellRenderPlugin)
.add_plugins(SceneRenderPlugin)
.add_systems(Startup, announce);
if args.node.is_some() {
match spawn_session(&args) {
Expand Down
Loading