add frag shader again

This commit is contained in:
Christoph J. Scherr 2023-10-21 19:21:49 +02:00
parent 5a5295231b
commit fd7f680592
2 changed files with 7 additions and 3 deletions

View File

@ -1 +1,7 @@
// empty #version 330 core
out vec4 FragColor;
void main()
{
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
}

View File

@ -78,7 +78,6 @@ ShaderProgram::ShaderProgram(Base base, string vertexSource,
exit(EXIT_SHADER); exit(EXIT_SHADER);
} }
/* FIXME: Optionally include a frag shader
BOOST_LOG_TRIVIAL(trace) << "loading fragments shader"; BOOST_LOG_TRIVIAL(trace) << "loading fragments shader";
glShaderSource(this->frag, 1, &fragSource_c, NULL); glShaderSource(this->frag, 1, &fragSource_c, NULL);
BOOST_LOG_TRIVIAL(trace) << "compiling fragments shader"; BOOST_LOG_TRIVIAL(trace) << "compiling fragments shader";
@ -91,7 +90,6 @@ ShaderProgram::ShaderProgram(Base base, string vertexSource,
<< infoLog << std::endl; << infoLog << std::endl;
exit(EXIT_SHADER); exit(EXIT_SHADER);
} }
*/
} }
/** defines the base program behavior. /** defines the base program behavior.