OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
98 stars 24 forks source link

ApplyClut16: Repair and use C++ code path #172

Closed meekee7 closed 2 years ago

meekee7 commented 2 years ago

The function ApplyClut16 applies a color lookup table to a surface. This change disables the Assembler code paths in that function to use the C++ code path instead and adds some unit tests.

There was a subtle typo in a bitmask constant. This error had the noticeable effect that the whole terrain was rendered as shadowy when using the software renderer and the C++ code path.

The test reference data was generated with the non-Pentium Assembler code path.

Correct version: TPass001 Incorrect version: TPass002