3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-18 07:17:14 +02:00

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
interface/resources/images
libraries/render-utils/src

Binary file not shown.

View file

@ -31,6 +31,8 @@
#include <mutex>
#include "PathUtils.h"
TextureCache::TextureCache() :
_permutationNormalTexture(0),
_whiteTexture(0),
@ -150,7 +152,8 @@ const gpu::TexturePointer& TextureCache::getBlueTexture() {
const gpu::TexturePointer& TextureCache::getNormalFittingScaleTexture() {
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();
}