Add Deformable material domain

This commit is contained in:
Wojtek Figat
2021-02-08 15:44:38 +01:00
parent 5a561b1278
commit da784e98e5
13 changed files with 685 additions and 9 deletions

View File

@@ -211,6 +211,17 @@ struct DrawCall
} Ribbon;
} Particle;
struct
{
GPUBuffer* SplineDeformation;
Matrix LocalMatrix; // Geometry transformation applied before deformation.
Vector3 GeometrySize; // Object geometry size in the world (unscaled).
float Segment;
float ChunksPerSegment;
float MeshMinZ;
float MeshMaxZ;
} Deformable;
struct
{
byte Raw[96];