Files
horizon-airdef/crates/horizon-client/src
Ludovic Marie 840e8ad4a8 Give terrain its own 28-byte vertex without a normal
Since #52 the shared vertex carried an RGBA8_SNORM face normal for
entity.wgsl's directional light, so every section vertex grew from 32 to
36 bytes although vs_terrain never reads it. Vanilla's terrain uses
DefaultVertexFormat.BLOCK (position, colour, UV0, UV2: 28 bytes): the face
shade is baked into the colour by ModelBlockRenderer and terrain.vsh only
multiplies it by the lightmap.

Sections now mesh into TerrainVertex: position, UV, the sprite layer as a
u16 (bit 15 marks opaque leaves), the two light bytes as a u16 and the
RGBA8 colour, 28 bytes. Every value the shader reads is unchanged; entity
vertices keep their normal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:07:01 +02:00
..
2026-10-09 00:28:32 +02:00
2026-10-09 12:40:31 +02:00
2026-10-09 00:28:32 +02:00
2026-10-10 07:14:42 +02:00
2026-10-14 17:15:20 +02:00
2026-10-09 13:01:12 +02:00
2026-10-09 13:22:33 +02:00
2026-10-09 04:59:58 +02:00
2026-10-09 13:01:12 +02:00
2026-10-09 00:28:32 +02:00
2026-10-09 00:28:32 +02:00
2026-10-13 03:17:04 +02:00
2026-10-09 00:28:32 +02:00