LibGL+LibSoftGPU: Implement normalization of normals

* LibGL now supports the `GL_NORMALIZE` capability
* LibSoftGPU transforms and normalizes the vertices' normals

Normals are heavily used in texture coordinate generation, to be
implemented in a future commit.
This commit is contained in:
Jelle Raaijmakers 2021-12-30 00:27:17 +01:00 committed by Andreas Kling
commit 3a5f69b6f3
Notes: sideshowbarker 2024-07-17 21:56:38 +09:00
4 changed files with 38 additions and 4 deletions

View file

@ -206,6 +206,7 @@ private:
GLclampf m_alpha_test_ref_value = 0;
bool m_dither_enabled { true };
bool m_normalize { false };
// Stencil configuration
bool m_stencil_test_enabled { false };