mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-21 16:00:30 +02:00
Starting a system link game on Blood Gulch in the Windows build stopped on two colour range asserts: rgb_colors_interpolate's result (a structure decal's random tint) and a transparent shader stage's animated constant colour. Both blend two valid colours by a factor in [0, 1], and the native builds' x87 code can carry such values (and periodic_function_evaluate's 255*(1.0f/255.0f)) at more than single precision, a hair past 1. The blends are pinned to [0, 1] before the asserts, and periodic functions return values in [0, 1]. (cherry picked from commit 5c1e49f189e09212d6bc9568649b1cdb7b1e005e, with the changes marked port: in place of that fork's HALO_LINUX, which OpenCE never defines, and without its README table)