using System.Runtime.InteropServices; namespace SabreTools.Data.Models.BSP { /// /// The DispVerts lump (Lump 33) contains the vertex data of the displacements. /// vec is the normalized vector of the offset of each displacement vertex from /// its original (flat) position; dist is the distance the offset has taken /// place; and alpha is the alpha-blending of the texture at that vertex. /// /// A displacement of power p references (2^p + 1)^2 dispverts in the array, /// starting from the DispVertStart index. /// /// [StructLayout(LayoutKind.Sequential)] public sealed class DispVert { /// /// Vector field defining displacement volume. /// public Vector3D Vec = new(); /// /// Displacement distances. /// public float Dist; /// /// "Per vertex" alpha values. /// public float Alpha; } }