From f2e3f39b15bd22e2aa727bf4669b6e52186e31c7 Mon Sep 17 00:00:00 2001
From: talha <talha@talhaamir.xyz>
Date: Sat, 6 Apr 2024 17:22:56 +0500
Subject: Update comments and understanding regarding disabling writing to
 stencil buffer

---
 source/main.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/source/main.cpp b/source/main.cpp
index 5f45782..7a2ee9a 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -834,11 +834,9 @@ int main(int argc, char* argv[])
     // view i.e, at a lower depth value
     glDisable(GL_DEPTH_TEST);
     // @note: im not entirely sure why we need to disable writing to the stencil buffer here
-    // based on my testing, if we don't disable this, the highlight color that gets drawn infront
-    // will cover the stencil values whereever it is. There is a subtle difference when this happens
-    // but from what I have seen it just looks better and makes more sense when we have don't write to the 
-    // stencil mask because. I guess it also means that we donot want the highlights we draw to affect other
-    // highlights
+    // based on my testing, if we don't disable this, the highlight color that gets drawn front
+    // will cover the stencil values wherever it is. If we disable this, then the highlight color
+    // that draws last will draw over the other highlights
     glStencilMask(0x00);
     glStencilFunc(GL_NOTEQUAL, 1, 0xFF);
     {
-- 
cgit v1.2.3