LibGL+LibSoftGPU: Implement more of GL_LIGHT_MODEL_COLOR_CONTROL

This gets rid of a place where OpenGL was leaking into LibSoftGPU.
This commit is contained in:
Jelle Raaijmakers 2022-03-23 11:07:39 +01:00 committed by Brian Gianforcaro
commit 284a629ab4
Notes: sideshowbarker 2024-07-17 16:40:30 +09:00
5 changed files with 24 additions and 14 deletions

View file

@ -813,7 +813,7 @@ void Device::draw_primitives(PrimitiveType primitive_type, FloatMatrix4x4 const&
}
// FIXME: The spec allows for splitting the colors calculated here into multiple different colors (primary/secondary color). Investigate what this means.
(void)m_lighting_model.single_color;
(void)m_lighting_model.color_control;
// FIXME: Two sided lighting should be implemented eventually (I believe this is where the normals are -ve and then lighting is calculated with the BACK material)
(void)m_lighting_model.two_sided_lighting;