summaryrefslogtreecommitdiffstats
path: root/AssetLoader/src/GLTFLoader.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-03-27 20:18:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-03-27 20:18:06 +0000
commit92ba772967a2841c7a1bc72ac23bb19bb1399e8f (patch)
tree55ff3db74bf85cc3f102d48b69e64338000bb977 /AssetLoader/src/GLTFLoader.cpp
parentReplaced Align with AlignUp (diff)
downloadDiligentTools-92ba772967a2841c7a1bc72ac23bb19bb1399e8f.tar.gz
DiligentTools-92ba772967a2841c7a1bc72ac23bb19bb1399e8f.zip
GLTF Loader: fixed default alpha channel value of 3-component textures
Diffstat (limited to 'AssetLoader/src/GLTFLoader.cpp')
-rw-r--r--AssetLoader/src/GLTFLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AssetLoader/src/GLTFLoader.cpp b/AssetLoader/src/GLTFLoader.cpp
index ff77f0b..b000caa 100644
--- a/AssetLoader/src/GLTFLoader.cpp
+++ b/AssetLoader/src/GLTFLoader.cpp
@@ -1605,7 +1605,7 @@ bool LoadImageData(tinygltf::Image* gltf_image,
DstPixel[0] = SrcPixel[0];
DstPixel[1] = SrcPixel[1];
DstPixel[2] = SrcPixel[2];
- DstPixel[3] = 1;
+ DstPixel[3] = 255;
}
}
}