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:
parent
3ad7bdc79e
commit
1f1fd1362a
2 changed files with 4 additions and 1 deletions
BIN
interface/resources/images/NormalsFittingTexture.dds
Normal file
BIN
interface/resources/images/NormalsFittingTexture.dds
Normal file
Binary file not shown.
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue