tirbofish/dropbear · commit
802c2592b612f903c339038a5f4a78b7869b22e1
wip
Signature present but could not be verified.
Unverified
@@ -10,7 +10,8 @@ use dropbear_engine::model::Model; use dropbear_engine::procedural::{ProcObjType, ProcedurallyGeneratedObject}; use dropbear_engine::texture::Texture; use dropbear_engine::utils::{ResourceReference, ResourceReferenceType}; -use egui::{CollapsingHeader, ComboBox, DragValue, RichText, UiBuilder}; +use dropbear_engine::wgpu; +use egui::{CollapsingHeader, ComboBox, DragValue, Grid, RichText, UiBuilder}; use hecs::{Entity, World}; pub use serde::{Deserialize, Serialize}; use std::any::TypeId; @@ -724,15 +725,15 @@ impl InspectableComponent for MeshRenderer { || uri.ends_with(".fbx") } - fn is_probably_texture_uri(uri: &str) -> bool { - let uri = uri.to_ascii_lowercase(); - uri.ends_with(".png") - || uri.ends_with(".jpg") - || uri.ends_with(".jpeg") - || uri.ends_with(".tga") - || uri.ends_with(".bmp") - || uri.ends_with(".webp") - } + // fn is_probably_texture_uri(uri: &str) -> bool { + // let uri = uri.to_ascii_lowercase(); + // uri.ends_with(".png") + // || uri.ends_with(".jpg") + // || uri.ends_with(".jpeg") + // || uri.ends_with(".tga") + // || uri.ends_with(".bmp") + // || uri.ends_with(".webp") + // } fn proc_obj_size(obj: &ProcedurallyGeneratedObject) -> Option<[f32; 3]> { if obj.ty != ProcObjType::Cuboid { @@ -1091,521 +1092,503 @@ impl InspectableComponent for MeshRenderer { } } - ui.label("Materials"); - - for (material_name, material) in self.material_snapshot.iter_mut() { - ui.separator(); - ui.label(material_name.as_str()); - - let mut tint_rgb = [material.tint[0], material.tint[1], material.tint[2]];
Large diffs are not rendered by default. Showing the first 50 of 1032 lines. Show full diff