mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
Merge pull request #12010 from SamGondelman/burp61
Fix equirectangular skybox loading (RC-61)
This commit is contained in:
commit
9fc47c8e52
1 changed files with 1 additions and 1 deletions
|
@ -981,7 +981,7 @@ public:
|
|||
static QImage extractEquirectangularFace(const QImage& source, gpu::Texture::CubeFace face, int faceWidth) {
|
||||
QImage image(faceWidth, faceWidth, source.format());
|
||||
|
||||
glm::vec2 dstInvSize(1.0f / (float)source.width(), 1.0f / (float)source.height());
|
||||
glm::vec2 dstInvSize(1.0f / faceWidth);
|
||||
|
||||
struct CubeToXYZ {
|
||||
gpu::Texture::CubeFace _face;
|
||||
|
|
Loading…
Reference in a new issue