mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 09:26:28 +02:00
When `GL_COLOR_MATERIAL` is enabled, specific material parameters can be overwritten by the current color per-vertex during the lighting calculations. Which parameter is controlled by `glColorMaterial`. Also move the lighting calculations _before_ clipping, because the spec says so. As a result, we interpolate the resulting vertex color instead of the input color.
1.5 KiB
1.5 KiB