blob: 3d55be5b497cc33df2eea40e956cec4527aad007 [file] [log] [blame]
namespace example.fb;
struct Vec2 {
x: float;
y: float;
}
struct Vec3 {
x: float;
y: float;
z: float;
}
struct Color {
r: float;
g: float;
b: float;
}
// Matches the vertex layout of the example shader, allowing for direct copying
// into the host buffer.
struct Vertex {
position: Vec3;
normal: Vec3;
tangent: Vec3;
texture_coords: Vec2;
}
table Mesh {
vertices: [Vertex];
indices: [uint16];
}
root_type Mesh;