VHV

From Valve Developer Community
Revision as of 08:36, 27 March 2024 by SirYodaJedi (talk | contribs) (Created page with "{{stub}} '''VHV''' files (Valve Hardware Verts) stores pre-baked vertex colors used for "per-vertex" static prop lighting, in a format designed to be very cheap to upload...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

VHV files (Valve Hardware Verts) stores pre-baked vertex colors used for "per-vertex" static prop lighting, in a format designed to be very cheap to upload to the GPU.

Description from 🖿public/materialsystem/hardwareverts.h:

// Contains data purposely formatted for a dma copy into a D3D Vertex Buffer.
// The file is divided into two partitions, the foremost contains the static
// portion (header), the latter contains the streamable compliant portion.
// The streamable component starts and ends on a sector (512) aligned boundary.
// The header identifies the vertex format of the data and the atomic sizes of each component.
// The hierarchial mesh is flattened for dma but the vertex counts are available
// per mesh to transfer each mesh individually.