History

cleanup resources directory references by copying beside the executable

Stephen Birarda committed 12 years ago

Commit b705ec51 parent c73728326 files · +190 −135Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 26 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+6−3
@@ -496,15 +496,18 @@ void VoxelSystem::initVoxelMemory() { · 495 unmodified lines
496496
497497 // create our simple fragment shader if we're the first system to init
498498 if (!_perlinModulateProgram.isLinked()) {
499− _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, ":/shaders/perlin_modulate.vert");
500− _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/perlin_modulate.frag");
499+ _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath()
500+ + "shaders/perlin_modulate.vert");
501+ _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath()
502+ + "shaders/perlin_modulate.frag");
501503 _perlinModulateProgram.link();
502504
503505 _perlinModulateProgram.bind();
504506 _perlinModulateProgram.setUniformValue("permutationNormalTexture", 0);
505507 _perlinModulateProgram.release();
506508
507− _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/shadow_map.frag");
509+ _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath()
510+ + "shaders/shadow_map.frag");
508511 _shadowMapProgram.link();
509512
510513 _shadowMapProgram.bind();