]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add a note about why this method is suboptimal. divVerent/stereo-desaturate
authorRudolf Polzer <divverent@xonotic.org>
Tue, 11 Feb 2014 11:24:36 +0000 (12:24 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 11 Feb 2014 11:24:36 +0000 (12:24 +0100)
shader_glsl.h
shader_hlsl.h

index 6b98c8fa668983daf5ef16b374a55fffb9eb14c9..ef68d4c3608faf5ccf6ba2b198762d68cf5b5bbf 100644 (file)
 "#endif\n",
 "\n",
 "#ifdef USESTEREODESATURATE\n",
+"      // Desaturation for anaglyph stereo.\n",
+"      // I know doing it here sucks, but as we currently use a single render\n",
+"      // target and color masking, nothing else will work. So expect breakage\n",
+"      // on transparent objects (e.g. a red filter followed by a blue surface\n",
+"      // not appearing black but grey).\n",
 "#ifdef USESTEREODESATURATE_REDCYAN\n",
 "      // Goal of this transformation:\n",
 "      // Keep brightness of R and GB proportional to each other and to\n",
index 3ea74ef657835aa42545116f7b9fa7a01442d09a..e6d7eae4073aaa8ab8a2a7660244e9aa06d35ec9 100644 (file)
 "#endif\n",
 "\n",
 "#ifdef USESTEREODESATURATE\n",
+"      // Desaturation for anaglyph stereo.\n",
+"      // I know doing it here sucks, but as we currently use a single render\n",
+"      // target and color masking, nothing else will work. So expect breakage\n",
+"      // on transparent objects (e.g. a red filter followed by a blue surface\n",
+"      // not appearing black but grey).\n",
 "#ifdef USESTEREODESATURATE_REDCYAN\n",
 "      // Goal of this transformation:\n",
 "      // Keep brightness of R and GB proportional to each other and to\n",