mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 11:38:16 +02:00
fix equirectangular skybox loading
This commit is contained in:
parent
affd67d7d4
commit
ee3c47d5ec
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