codecs/model/Displacement: Source displacement surfaces (CCoreDispInfo grid, normals, triangles); model/vbsp uses it

STYLE.md: Displacement listed in the layout block and the section 2a table.
This commit is contained in:
4DBug committed 2026-11-01 18:59:58 -06:00
1 parent 9efeea304e
commit c30e8618fc
6 files changed
+175 -94

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ src/Rosetta/
video/ Dsp H263 H264 Legacy Mpeg1 Mpeg2 Theora Video (the video codec registry)
text/ Json KeyValues Nbt Text Url Xml
font/ Bitmap Cff GlyphNames TrueType
model/ Brush Draco Mat4 MeshFlatten Minecraft Patch Polygon Rbx Rig Sampler Vrml
model/ Brush Displacement Draco Mat4 MeshFlatten Minecraft Patch Polygon Rbx Rig Sampler Vrml
host/ host (layer 2) runtime adapters; only the api uses them
Types.luau types (layer 1) standard types + constructors
core/ core (layer 0) Adler32 Base64 Bits Bytes Crc16 Crc32 Err Input
@@ -245,7 +245,7 @@ them. Anything generic goes down a layer and is called:
| plane brushes -> polygons (CSG hull, coplanar merge, Quake / Valve 220 / brush-primitive texturing); Bezier patches | `codecs/model/Brush`, `codecs/model/Patch` |
| Quake / GoldSrc mip textures, WAD2 / WAD3 directories; palettes (keyed index, grey, colormap) | `codecs/image/Miptex`, `codecs/image/Pixels` |
| NBT / SNBT values; Minecraft block states and colours | `codecs/text/Nbt`, `codecs/model/Minecraft` |
| Valve KeyValues (text, binary, the BSP entity lump) | `codecs/text/KeyValues` |
| Valve KeyValues (text, binary, the BSP entity lump); Source displacement surfaces | `codecs/text/KeyValues`, `codecs/model/Displacement` |
| Roblox instance trees and property values | `codecs/model/Rbx` |
| bitmap fonts as a Font; PostScript glyph names | `codecs/font/Bitmap`, `codecs/font/GlyphNames` |
| CRC-16 (XMODEM / ARC), xxHash32 | `core/Crc16`, `codecs/compress/Xxh32` |