Skip to content

engine-revival 0.12.0

Latest

Choose a tag to compare

@HarperZ9 HarperZ9 released this 18 Oct 01:47
38c6780

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_FLAT through _1024_FLAT, with TriangleSetup_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 reads shade_row[texel] and does not read past the table.
  • fti8pizp.asm's perspective flat lit kernels are ported: TriangleRender_ZPTI_I8_D16_32_FLAT through _1024_FLAT, with TriangleSetup_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"