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
496 496
497 // create our simple fragment shader if we're the first system to init497 // create our simple fragment shader if we're the first system to init
498 if (!_perlinModulateProgram.isLinked()) {498 if (!_perlinModulateProgram.isLinked()) {
499 _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, ":/shaders/perlin_modulate.vert");499 _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, Application::resourcesPath()
500 _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/perlin_modulate.frag");500 + "shaders/perlin_modulate.vert");
501 _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath()
502 + "shaders/perlin_modulate.frag");
501 _perlinModulateProgram.link();503 _perlinModulateProgram.link();
502 504
503 _perlinModulateProgram.bind();505 _perlinModulateProgram.bind();
504 _perlinModulateProgram.setUniformValue("permutationNormalTexture", 0);506 _perlinModulateProgram.setUniformValue("permutationNormalTexture", 0);
505 _perlinModulateProgram.release();507 _perlinModulateProgram.release();
506 508
507 _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/shadow_map.frag");509 _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, Application::resourcesPath()
510 + "shaders/shadow_map.frag");
508 _shadowMapProgram.link();511 _shadowMapProgram.link();
509 512
510 _shadowMapProgram.bind();513 _shadowMapProgram.bind();