We need to adjust the directory on OS X before we attempt to load the shaders.

This commit is contained in:
Andrzej Kapolka 2013-05-08 15:33:39 -07:00
parent 1f58e28b36
commit da822e5299

View file

@ -7,6 +7,8 @@
#include <QByteArray>
#include <SharedUtil.h>
#include "Camera.h"
#include "Environment.h"
#include "renderer/ProgramObject.h"
@ -14,6 +16,7 @@
#include "world.h"
void Environment::init() {
switchToResourcesParentIfRequired();
_skyFromAtmosphereProgram = createSkyProgram("Atmosphere", _skyFromAtmosphereUniformLocations);
_skyFromSpaceProgram = createSkyProgram("Space", _skyFromSpaceUniformLocations);
}