summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareGLContext.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-12-30 00:27:17 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-30 14:24:29 +0100
commit3a5f69b6f387464f4e9d625fc8a05e98eccaf80e (patch)
treea672701075a4149d1a604c2125d6e515dc770908 /Userland/Libraries/LibGL/SoftwareGLContext.h
parente056cf7e3f32b81ee7d10646a9bbab3fd9692c74 (diff)
downloadserenity-3a5f69b6f387464f4e9d625fc8a05e98eccaf80e.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h
index 8ef1452fce..0b893c3a92 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.h
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.h
@@ -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 };