|
|
@@ -73,7 +73,7 @@ impl<'a> State<'a> {
|
|
|
.request_device(
|
|
|
&wgpu::DeviceDescriptor {
|
|
|
label: None,
|
|
|
- required_features: wgpu::Features::empty(),
|
|
|
+ required_features: wgpu::Features::POLYGON_MODE_LINE,
|
|
|
// WebGL doesn't support all of wgpu's features, so if
|
|
|
// we're building for the web we'll have to disable some.
|
|
|
required_limits: if cfg!(target_arch = "wasm32") {
|
|
|
@@ -116,7 +116,7 @@ impl<'a> State<'a> {
|
|
|
|
|
|
|
|
|
|
|
|
- let plan1 = object::generate_plane(3,3,10.,10.);
|
|
|
+ let plan1 = object::generate_plane(512,512,100.,100.);
|
|
|
//println!("{:?}", plan1.positions_list());
|
|
|
let plan2 = plan1.clone();
|
|
|
let vertex_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor{
|
|
|
@@ -153,7 +153,7 @@ impl<'a> State<'a> {
|
|
|
front_face: wgpu::FrontFace::Ccw,
|
|
|
cull_mode: None,
|
|
|
unclipped_depth: false,
|
|
|
- polygon_mode: wgpu::PolygonMode::Fill,
|
|
|
+ polygon_mode: wgpu::PolygonMode::Line,
|
|
|
conservative: false
|
|
|
},
|
|
|
depth_stencil: None,
|