Showing the changes to interface/src/VoxelSystem.cpp (1 of 26 files). Show all
Unified · Split
| @@ -496,15 +496,18 @@ void VoxelSystem::initVoxelMemory() { · 495 unmodified lines | ||
| 496 | 496 | |
| 497 | 497 | // create our simple fragment shader if we're the first system to init |
| 498 | 498 | 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"); | |
| 501 | 503 | _perlinModulateProgram.link(); |
| 502 | 504 | |
| 503 | 505 | _perlinModulateProgram.bind(); |
| 504 | 506 | _perlinModulateProgram.setUniformValue("permutationNormalTexture", 0); |
| 505 | 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 | 511 | _shadowMapProgram.link(); |
| 509 | 512 | |
| 510 | 513 | _shadowMapProgram.bind(); |