mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
Merge pull request #6110 from ZappoMan/textureMapHack
ifdef out buggy texture map code
This commit is contained in:
commit
2cd6d7c8a5
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,8 @@ double mapComponent(double sobelValue) {
|
|||
gpu::Texture* TextureUsage::createNormalTextureFromBumpImage(const QImage& srcImage, const std::string& srcImageName) {
|
||||
QImage image = srcImage;
|
||||
|
||||
|
||||
#if 0
|
||||
// PR 5540 by AlessandroSigna
|
||||
// integrated here as a specialized TextureLoader for bumpmaps
|
||||
// The conversion is done using the Sobel Filter to calculate the derivatives from the grayscale image
|
||||
|
@ -236,6 +238,7 @@ gpu::Texture* TextureUsage::createNormalTextureFromBumpImage(const QImage& srcIm
|
|||
result.setPixel(i, j, qRgbValue);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
gpu::Texture* theTexture = nullptr;
|
||||
if ((image.width() > 0) && (image.height() > 0)) {
|
||||
|
|
Loading…
Reference in a new issue