INcluding the texture for normal best fit

This commit is contained in:
Sam Gateau 2015-05-20 16:16:22 -07:00
parent 3ad7bdc79e
commit 1f1fd1362a
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -31,6 +31,8 @@
#include <mutex> #include <mutex>
#include "PathUtils.h"
TextureCache::TextureCache() : TextureCache::TextureCache() :
_permutationNormalTexture(0), _permutationNormalTexture(0),
_whiteTexture(0), _whiteTexture(0),
@ -150,7 +152,8 @@ const gpu::TexturePointer& TextureCache::getBlueTexture() {
const gpu::TexturePointer& TextureCache::getNormalFittingScaleTexture() { const gpu::TexturePointer& TextureCache::getNormalFittingScaleTexture() {
if (!_NFSTexture) { if (!_NFSTexture) {
_NFSTexture = getTexture(QUrl("http://advances.realtimerendering.com/s2010/Kaplanyan-CryEngine3(SIGGRAPH%202010%20Advanced%20RealTime%20Rendering%20Course)-NormalsFittingTexture.dds")); // _NFSTexture = getTexture(QUrl("http://advances.realtimerendering.com/s2010/Kaplanyan-CryEngine3(SIGGRAPH%202010%20Advanced%20RealTime%20Rendering%20Course)-NormalsFittingTexture.dds"));
_NFSTexture = getTexture(QUrl::fromLocalFile(PathUtils::resourcesPath() + "images/NormalsFittingTexture.dds"));
} }
return _NFSTexture->getGPUTexture(); return _NFSTexture->getGPUTexture();
} }