src/gl/compiler.cpp

changeset 119
24275a4064f4
parent 115
ed884a2fb009
child 139
72098474d362
--- a/src/gl/compiler.cpp	Tue Jul 27 16:29:00 2021 +0300
+++ b/src/gl/compiler.cpp	Wed Jul 28 08:23:09 2021 +0300
@@ -48,6 +48,7 @@
 const int FRAGSTYLE_BfcRed = 2;
 const int FRAGSTYLE_Random = 3;
 const int FRAGSTYLE_Id = 4;
+const int FRAGSTYLE_Black = 5;
 
 void main()
 {
@@ -77,6 +78,10 @@
 		{
 			vColor = vec4(0.9, 0.2, 0.2, 1.0);
 		}
+		else if (fragmentStyle == FRAGSTYLE_Black)
+		{
+			vColor = vec4(0.0, 0.0, 0.0, 1.0);
+		}
 		else
 		{
 			vColor = color;

mercurial