mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Reenable non-player figure drawing
This commit is contained in:
parent
a723fc85ae
commit
1cf128311a
@ -107,3 +107,8 @@ key = "veloren-nix.cachix.org-1:zokfKJqVsNV6kI/oJdLF6TYBdNPYGSb+diMVQPn/5Rc="
|
||||
# macos CI fix isn't merged yet
|
||||
winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" }
|
||||
vek = { git = "https://gitlab.com/veloren/vek.git", branch = "fix_intrinsics2" }
|
||||
|
||||
# Pending https://github.com/gfx-rs/wgpu/pull/1080
|
||||
[patch.'https://github.com/gfx-rs/wgpu']
|
||||
wgpu-core = { git="https://github.com/JCapucho/wgpu" }
|
||||
wgpu-types = { git="https://github.com/JCapucho/wgpu" }
|
||||
|
@ -4447,9 +4447,9 @@ impl FigureMgr {
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)] // TODO: Pending review in #587
|
||||
pub fn render(
|
||||
&self,
|
||||
renderer: &mut Renderer,
|
||||
pub fn render<'a>(
|
||||
&'a self,
|
||||
drawer: &mut FirstPassDrawer<'a>,
|
||||
state: &State,
|
||||
player_entity: EcsEntity,
|
||||
tick: u64,
|
||||
@ -4491,8 +4491,7 @@ impl FigureMgr {
|
||||
figure_lod_render_distance * scale.map_or(1.0, |s| s.0),
|
||||
|state| state.visible(),
|
||||
) {
|
||||
// renderer.render_figure(model, &col_lights, global,
|
||||
// locals, bone_consts, lod);
|
||||
drawer.draw_figure(model, bound, col_lights);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1022,15 +1022,8 @@ impl Scene {
|
||||
|
||||
self.terrain.render(drawer, focus_pos);
|
||||
|
||||
/* self.figure_mgr.render(
|
||||
renderer,
|
||||
state,
|
||||
player_entity,
|
||||
tick,
|
||||
global,
|
||||
lod,
|
||||
camera_data,
|
||||
);*/
|
||||
self.figure_mgr
|
||||
.render(drawer, state, player_entity, tick, global, lod, camera_data);
|
||||
|
||||
self.lod.render(drawer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user