Build renderer and material component foundations

Add dedicated skinned rendering, pose restoration, shared Material and Material Instance slots, registry-driven components, Surface/Solari integration, transactional schema upgrades, navigation authoring, documentation, and evaluation evidence.
This commit is contained in:
Rbanh committed 2026-07-12 00:24:06 -04:00
1 parent 0553a85220
commit 0798aa5d57
169 files changed
+27098 -3469

No files matched your search

+11 -5
View File
@@ -3,8 +3,8 @@
use bevy::prelude::*;
use crate::{
inspector_component_active, InspectorOrder, LevelObject, Primitive, PrimitiveShape,
COMPONENT_PRIMITIVE,
authoring_component_active, AuthoringComponentStates, InspectorOrder, LevelObject, Primitive,
PrimitiveShape, COMPONENT_PRIMITIVE,
};
pub(crate) fn primitive_mesh(primitive: &Primitive) -> Mesh {
@@ -32,20 +32,26 @@ pub(crate) fn primitive_mesh(primitive: &Primitive) -> Mesh {
pub fn hydrate_primitives(
mut commands: Commands,
primitives: Query<
(Entity, &Primitive, Option<&InspectorOrder>),
(
Entity,
&Primitive,
Option<&AuthoringComponentStates>,
Option<&InspectorOrder>,
),
(
With<LevelObject>,
Or<(
Added<Primitive>,
Changed<Primitive>,
Changed<AuthoringComponentStates>,
Changed<InspectorOrder>,
)>,
),
>,
mut meshes: ResMut<Assets<Mesh>>,
) {
for (entity, primitive, order) in &primitives {
if !inspector_component_active(order, COMPONENT_PRIMITIVE) {
for (entity, primitive, states, legacy_order) in &primitives {
if !authoring_component_active(states, legacy_order, COMPONENT_PRIMITIVE) {
commands
.entity(entity)
.remove::<Mesh3d>()