MindBuffer / cohen_gig

Wash lighting and LED visualisation and DMX control for the upcoming Josh Cohen gig.
3 stars 1 forks source link

Replace `Position` with `Vertex` type with more attributes #15

Closed mitchmindtree closed 5 years ago

mitchmindtree commented 5 years ago

The Vertex input should look something like this:

struct Vertex {
    position: Point3,
    light: Light,
}

enum Light {
    Wash {
        index: usize,
    },
    Led {
        index: usize,
        row_col: [usize; 2],
        normalised_coords: Point2,
    }
}
JoshuaBatty commented 5 years ago

Sweet this will actually make coming up with shaders much more intuatively.