From f6b3f603930ac743ea804553294047ae3ec726ca Mon Sep 17 00:00:00 2001
From: Mathias Paulin <mathias.paulin@irit.fr>
Date: Thu, 25 Mar 2021 08:30:31 +0100
Subject: [PATCH] Change visualization demo color function.

---
 src/DemoApp/main.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/DemoApp/main.cpp b/src/DemoApp/main.cpp
index 47090cd..c54ff6f 100644
--- a/src/DemoApp/main.cpp
+++ b/src/DemoApp/main.cpp
@@ -181,7 +181,7 @@ const std::string customFragmentColor{
     "vec3(0, 0, 1), diffColor, specColor );\n"
     "vec3 col = normal_world*0.5+0.5;\n"
     "col *= fragCustomAttrib.rgb;\n"
-    "return vec4( (specColor+fragCustomAttrib.rgb)*max(lightDir.z, 0), 1); \n"
+    "return vec4( (specColor+col)*max(lightDir.z, 0), 1); \n"
     "}\n"};
 
 /**
@@ -215,6 +215,7 @@ int main( int argc, char* argv[] ) {
     return app.exec();
 }
 
+
 #if 0
 int main( int argc, char* argv[] ) {
 
-- 
GitLab