mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-07 13:19:52 +02:00
fix equirectangular skybox loading
This commit is contained in:
parent
c39da5094b
commit
b0ecaa10d4
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) {
|
static QImage extractEquirectangularFace(const QImage& source, gpu::Texture::CubeFace face, int faceWidth) {
|
||||||
QImage image(faceWidth, faceWidth, source.format());
|
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 {
|
struct CubeToXYZ {
|
||||||
gpu::Texture::CubeFace _face;
|
gpu::Texture::CubeFace _face;
|
||||||
|
|
Loading…
Reference in a new issue