Fix shaded edges
@@ -105,7 +105,6 @@ impl ShadedEdges
pub fn render(&self, camera: &camera::Camera)
{
- /*self.program.set_used();
self.program.cull(state::CullType::BACK);
self.program.depth_test(state::DepthTestType::LEQUAL);
self.program.depth_write(true);
@@ -130,6 +129,6 @@ impl ShadedEdges
self.program.setup_attribute(&self.instance_buffer,"normalMatrixY", 3, 21, 15, 1).unwrap();
self.program.setup_attribute(&self.instance_buffer,"normalMatrixZ", 3, 21, 18, 1).unwrap();
- self.program.draw_elements_instanced(&self.cylinder_index_buffer,self.no_edges);*/
+ self.program.draw_elements_instanced(&self.cylinder_index_buffer,self.no_edges);
}
}
