Repository navigation
The period BRender 1.3.2 build now draws flat lit 8-bit textures (BR_MATF_LIGHT without BR_MATF_SMOOTH), linear and perspective-correct.
zb8p2fla.asm's linear flat lit kernels are ported:TriangleRender_ZT_I8_D16_8_FLATthrough_1024_FLAT, withTriangleSetup_ZT_FLAT_LIT. Flat lighting fixes the shade row for the whole face, from v0's intensity; the kernel masks the texel to a byte, so it readsshade_row[texel]and does not read past the table.fti8pizp.asm's perspective flat lit kernels are ported:TriangleRender_ZPTI_I8_D16_32_FLATthrough_1024_FLAT, withTriangleSetup_ZPTI_FLAT, whose constant intensity comes from v0.- Checked against the 1998 assembly itself, assembled with MASM and linked in place of the ports: the same bytes on all 102 brender-archival parity scenes and on 100,000 random triangles over the kernels, flat kernels included. Widening the flat kernel's texel mask fails only the flat kernels.
- Measured against BRender 1.4: the flat lit scenes are byte-identical.
Install: pip install "engine-revival @ git+https://github.com/HarperZ9/engine-revival@v0.12.0"