You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
418 B

struct Vertex {
vec3 position;
vec2 uv;
uvec3 normal;
vec3 velocity;
vec3 prevPosition;
float inverseMass;
};
struct Face {
uint a;
uint b;
uint c;
};
struct Edge {
uint a;
uint b;
float restLength;
float compliance;
};
struct Triangle {
uint a;
uint b;
uint c;
float restArea;
float compliance;
};
struct Tetrahedron {
uint a;
uint b;
uint c;
uint d;
float restVolume;
float compliance;
};