载入中...
搜索中...
未找到
VoxelRectDecode.h
浏览该文件的文档.
方块类型定义:名字、各面图集纹理、方向性、组合声明。 方向性方块在注册时按 orientation 绕 Y 轴展开成多个"具体类型"变体, 每个变体持有旋转后的各面纹理;渲染端只消费纹理 id,不接触 ...
Definition Chunk.h:12
bool decodedWindingMatchesNormal(const DecodedRect &q)
True when triangle (0,2,1) winding matches outward normal (matches GPU index order).
Definition VoxelRectDecode.h:101
DecodedRect decodePackedRect(PackedRect rect, FaceDir dir, float originX, float originY, float originZ, int tilesPerRow=16, uint32_t aoWord=0xFFu)
CPU mirror of the instanced voxel vertex shader placement / UV logic. Used by unit tests to validate ...
Definition VoxelRectDecode.h:23
bool decodedSecondTriangleMatchesNormal(const DecodedRect &q)
True when the second GPU triangle (0,3,2) also matches the outward normal.
Definition VoxelRectDecode.h:116
FaceDir
Six axis-aligned face directions. Each chunk keeps a separate instance buffer per direction so camera...
Definition FaceDir.h:17
One decoded face rectangle in world space (mirrors voxel_rect.vert).
Definition VoxelRectDecode.h:9
Packed face-rectangle instance (exactly 32 bits): bits 0..4 : x (0..31) bits 5..9 : y (0....
Definition VoxelPack.h:22