Reenable non-player figure drawing

This commit is contained in:
Capucho 2020-12-07 13:04:57 +00:00 committed by Imbris
parent fe6cf0396f
commit c22dc6697c
3 changed files with 11 additions and 14 deletions

View File

@ -113,3 +113,8 @@ nativeBuildInputs = ["pkg-config"]
# macos CI fix isn't merged yet # macos CI fix isn't merged yet
winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" } winit = { git = "https://gitlab.com/veloren/winit.git", branch = "macos-test-spiffed" }
vek = { git = "https://gitlab.com/veloren/vek.git", branch = "fix_intrinsics2" } 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" }

View File

@ -4758,9 +4758,9 @@ impl FigureMgr {
} }
#[allow(clippy::too_many_arguments)] // TODO: Pending review in #587 #[allow(clippy::too_many_arguments)] // TODO: Pending review in #587
pub fn render( pub fn render<'a>(
&self, &'a self,
renderer: &mut Renderer, drawer: &mut FirstPassDrawer<'a>,
state: &State, state: &State,
player_entity: EcsEntity, player_entity: EcsEntity,
tick: u64, tick: u64,
@ -4802,8 +4802,7 @@ impl FigureMgr {
figure_lod_render_distance * scale.map_or(1.0, |s| s.0), figure_lod_render_distance * scale.map_or(1.0, |s| s.0),
|state| state.visible(), |state| state.visible(),
) { ) {
// renderer.render_figure(model, &col_lights, global, drawer.draw_figure(model, bound, col_lights);
// locals, bone_consts, lod);
} }
} }
} }

View File

@ -1022,15 +1022,8 @@ impl Scene {
self.terrain.render(drawer, focus_pos); self.terrain.render(drawer, focus_pos);
/* self.figure_mgr.render( self.figure_mgr
renderer, .render(drawer, state, player_entity, tick, global, lod, camera_data);
state,
player_entity,
tick,
global,
lod,
camera_data,
);*/
self.lod.render(drawer); self.lod.render(drawer);