dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
859 stars 44 forks source link

Implements BRender environment mapping #309

Closed dethrace-labs closed 1 year ago

dethrace-labs commented 1 year ago

Some windscreen materials (for example, Eagle 1, Grimm, Harry) have a BR_MATF_ENVIRONMENT_L flag, and are somehow reflective.

According to BRender docs, this flag describes a spherical environment map. https://rr2000.cwaboard.co.uk/R4/BRENDER/TEBK_43.HTM#HEADING331

Screenshot 2023-04-25 at 5 59 40 am

Fixes: #307