History

update resource references to use Qt resource system

Stephen Birarda committed 12 years ago

Commit 403f91c1 parent cc554c528 files · +60 −378Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+3−4
@@ -496,16 +496,15 @@ 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− switchToResourcesParentIfRequired();
500− _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, "resources/shaders/perlin_modulate.vert");
501− _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, "resources/shaders/perlin_modulate.frag");
499+ _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Vertex, ":/shaders/perlin_modulate.vert");
500+ _perlinModulateProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/perlin_modulate.frag");
502501 _perlinModulateProgram.link();
503502
504503 _perlinModulateProgram.bind();
505504 _perlinModulateProgram.setUniformValue("permutationNormalTexture", 0);
506505 _perlinModulateProgram.release();
507506
508− _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, "resources/shaders/shadow_map.frag");
507+ _shadowMapProgram.addShaderFromSourceFile(QGLShader::Fragment, ":/shaders/shadow_map.frag");
509508 _shadowMapProgram.link();
510509
511510 _shadowMapProgram.bind();