tron-room-demo: render the whole pipeline in RGB565 (real-HW color space)
The sketch now draws into a 16-bit 320x240 fb565 — the ST7789 panel's native format — using the RGB565 palette constants straight from nd_layout.h (C_FLOOR, C_WALL, C_COVER, C_DOOR, C_AIRLOCK, C_LINK, C_PACKET, node colors). Shading/fog are integer fixed-point on the 5/6/5 channels so the banding matches what the MCU would produce; the desktop window sees a 565-to-8888 expansion blit that stands in for the SPI push (which ships 565 as-is on hardware).
This commit is contained in:
@@ -11,6 +11,13 @@ consumed through the generic `MapSource` interface). There is no local
|
||||
copy of the map — edit the demo map in `src/netdeck` and this view
|
||||
follows it.
|
||||
|
||||
The whole render pipeline runs in **RGB565** — the ST7789 panel's native
|
||||
format — with the palette taken directly from `nd_layout.h`. Shading and
|
||||
fog are integer fixed-point on the 5/6/5 channels, so the visible color
|
||||
banding is exactly what real hardware would produce. Only the final
|
||||
blit expands 565→8888 for the desktop window (the stand-in for the SPI
|
||||
push, which on the device ships the 565 buffer as-is).
|
||||
|
||||
## What you see
|
||||
|
||||
- A true 3D orbiting camera (position + look-at basis, perspective
|
||||
|
||||
Reference in New Issue
Block a user