mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Clean up import
This commit is contained in:
parent
9e01da248e
commit
83d40cc5df
@ -3,7 +3,7 @@ use wgpu::util::DeviceExt;
|
|||||||
|
|
||||||
use crate::geometry::Operation;
|
use crate::geometry::Operation;
|
||||||
|
|
||||||
use super::pipelines::triangles;
|
use super::pipelines::triangles::Vertex;
|
||||||
|
|
||||||
pub struct Geometry {
|
pub struct Geometry {
|
||||||
pub vertices: wgpu::Buffer,
|
pub vertices: wgpu::Buffer,
|
||||||
@ -36,7 +36,7 @@ impl Geometry {
|
|||||||
|
|
||||||
for point in triangle {
|
for point in triangle {
|
||||||
let index = vertices.len() as u32;
|
let index = vertices.len() as u32;
|
||||||
let vertex = triangles::Vertex {
|
let vertex = Vertex {
|
||||||
position: point.into(),
|
position: point.into(),
|
||||||
normal: normal.into(),
|
normal: normal.into(),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user