moved all shader code out of C++ source and into external shader files

General code cleanup and easier maintenance.
This commit is contained in:
itsmattkc
2019-12-10 00:10:00 +11:00
parent 3dc563b697
commit 2fb4047e6f
12 changed files with 56 additions and 62 deletions
+1 -7
View File
@@ -60,13 +60,7 @@ bool SolidGenerator::IsAccelerated() const
QString SolidGenerator::CodeFragment() const
{
return "#version 110\n"
"\n"
"uniform vec4 color_in;\n"
"\n"
"void main(void) {\n"
" gl_FragColor = color_in;\n"
"}\n";
return ReadFileAsString(":/shaders/solid.frag");
}
void SolidGenerator::Retranslate()