Move fboPass shader into NewHorizons module

This commit is contained in:
Alexander Bock
2016-05-01 13:14:36 +02:00
parent 3fbff9c0a3
commit cfb895e2e9
4 changed files with 3 additions and 18 deletions
+1 -18
View File
@@ -78,24 +78,7 @@ Scene::~Scene() {
}
bool Scene::initialize() {
LDEBUG("Initializing SceneGraph");
using ghoul::opengl::ShaderObject;
using ghoul::opengl::ProgramObject;
std::unique_ptr<ProgramObject> tmpProgram;
// fboPassthrough program
tmpProgram = ProgramObject::Build(
"fboPassProgram",
"${SHADERS}/fboPass_vs.glsl",
"${SHADERS}/fboPass_fs.glsl");
if (!tmpProgram)
return false;
tmpProgram->setIgnoreSubroutineUniformLocationError(ProgramObject::IgnoreError::Yes);
OsEng.configurationManager().setValue("fboPassProgram", tmpProgram.get());
LDEBUG("Initializing SceneGraph");
return true;
}