This commit is contained in:
griffi-gh 2023-01-28 04:26:47 +01:00
parent 3b36990d32
commit b4462a0176

View file

@ -1,11 +1,13 @@
use shipyard::{View, IntoIter, NonSendSync, UniqueViewMut};
use glium::Surface;
use crate::{
player::MainPlayer,
world::raycast::LookingAtBlock,
camera::Camera
};
use super::RenderTarget;
const CUBE_VERTICES: &[f32] = &[0.0];
//wip
pub fn render_selection_box(
lookat: View<LookingAtBlock>,
@ -13,6 +15,17 @@ pub fn render_selection_box(
mut target: NonSendSync<UniqueViewMut<RenderTarget>>,
) {
for lookat in lookat.iter() {
// target.0.draw(
// &mesh.vertex_buffer,
// &mesh.index_buffer,
// &program.0,
// &uniform! {
// position_offset: world_position.to_array(),
// view: view,
// perspective: perspective,
// tex: texture_sampler,
// },
// &draw_parameters
// ).unwrap();
}
}