mirror of
https://github.com/overte-org/overte.git
synced 2025-07-13 13:58:48 +02:00
ifdef out buggy texture map code
This commit is contained in:
parent
c04cdc4964
commit
bddb0e1e7b
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) {
|
gpu::Texture* TextureUsage::createNormalTextureFromBumpImage(const QImage& srcImage, const std::string& srcImageName) {
|
||||||
QImage image = srcImage;
|
QImage image = srcImage;
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
// PR 5540 by AlessandroSigna
|
// PR 5540 by AlessandroSigna
|
||||||
// integrated here as a specialized TextureLoader for bumpmaps
|
// integrated here as a specialized TextureLoader for bumpmaps
|
||||||
// The conversion is done using the Sobel Filter to calculate the derivatives from the grayscale image
|
// 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);
|
result.setPixel(i, j, qRgbValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
gpu::Texture* theTexture = nullptr;
|
gpu::Texture* theTexture = nullptr;
|
||||||
if ((image.width() > 0) && (image.height() > 0)) {
|
if ((image.width() > 0) && (image.height() > 0)) {
|
||||||
|
|
Loading…
Reference in a new issue