wip
This commit is contained in:
parent
cc7921a5fe
commit
3692736a61
22 changed files with 447 additions and 44 deletions
|
|
@ -9,6 +9,7 @@ pub use raidillon_platform::Camera;
|
|||
use glam::Vec3;
|
||||
use glium::uniforms::{MagnifySamplerFilter, MinifySamplerFilter, SamplerWrapFunction};
|
||||
use raidillon_ecs::{Transform, ModelID};
|
||||
use raidillon_ecs::components::ModelHandle;
|
||||
use crate::model::Model;
|
||||
|
||||
/// A basic renderer pipeline step.
|
||||
|
|
@ -65,8 +66,8 @@ impl RenderingSystem for BasicMeshRenderingSystem {
|
|||
|
||||
let asset_manager = ctx.asset_manager.borrow();
|
||||
|
||||
for (_, (tr, mh)) in ctx.scene.world.query::<(&Transform, &ModelID)>().iter() {
|
||||
let model = match asset_manager.get_model(mh) {
|
||||
for (_, (tr, mh)) in ctx.scene.world.query::<(&Transform, &ModelHandle)>().iter() {
|
||||
let model = match asset_manager.get_model(&mh.0) {
|
||||
Some(model) => model,
|
||||
_ => continue,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue