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

+20 -2
View File
@@ -16,8 +16,8 @@ use bevy::shader::ShaderRef;
use shared::{
ActorKind, AudioListenerDesc, AudioSourceDesc, AuthoringLightKind, ColliderDesc, LevelObject,
LightDesc, ModelRef, ObjectiveMarker, PhysicsBody, PlayerSpawn, PostProcessVolumeDesc,
PrefabInstance, PrefabRef, Primitive, RaytracingExcluded, StaticMeshRenderer, TeamSpawn,
TriggerVolume, WeaponSpawn,
PrefabInstance, PrefabRef, Primitive, RaytracingExcluded, SkinnedMeshRenderer,
StaticMeshRenderer, TeamSpawn, TriggerVolume, WeaponSpawn,
};
use crate::camera::EditorCamera;
@@ -203,6 +203,7 @@ struct ActorIconComponents {
light_kind: Option<AuthoringLightKind>,
has_primitive: bool,
has_static_mesh_renderer: bool,
has_skinned_mesh_renderer: bool,
has_model_ref: bool,
has_prefab_ref: bool,
has_prefab_instance: bool,
@@ -386,6 +387,7 @@ fn sync_actor_icons(
),
(With<LevelObject>, Without<EditorOnly>),
>,
skinned_meshes: Query<(), With<SkinnedMeshRenderer>>,
audio: Query<(Has<AudioSourceDesc>, Has<AudioListenerDesc>)>,
physics: Query<(), Or<(With<PhysicsBody>, With<ColliderDesc>)>>,
) {
@@ -419,6 +421,7 @@ fn sync_actor_icons(
has_primitive,
has_static_mesh_renderer: static_mesh_renderer
.is_some_and(has_resolved_static_mesh_slot),
has_skinned_mesh_renderer: skinned_meshes.contains(target),
has_model_ref,
has_prefab_ref,
has_prefab_instance,
@@ -489,6 +492,7 @@ fn sync_actor_icons(
has_primitive,
has_static_mesh_renderer: static_mesh_renderer
.is_some_and(has_resolved_static_mesh_slot),
has_skinned_mesh_renderer: skinned_meshes.contains(target),
has_model_ref,
has_prefab_ref,
has_prefab_instance,
@@ -637,6 +641,16 @@ fn icon_for_actor_components(components: ActorIconComponents) -> ActorIconSpec {
warning
}
}
ActorKind::SkinnedMesh => {
if components.has_skinned_mesh_renderer {
ActorIconSpec {
image: ActorIconImage::Mesh,
category: ActorIconCategory::Mesh,
}
} else {
warning
}
}
ActorKind::ImportedModel => {
if components.has_model_ref {
ActorIconSpec {
@@ -752,6 +766,10 @@ fn icon_for_actor_components(components: ActorIconComponents) -> ActorIconSpec {
warning
}
}
ActorKind::Navigation => ActorIconSpec {
image: ActorIconImage::GameMarker,
category: ActorIconCategory::Volume,
},
ActorKind::Empty => {
if components.has_physics {
ActorIconSpec {