Skip to content

PMREMGenerator flips the X axis when receiving a non CubeTexture #15301

@jsantell

Description

@jsantell
Description of the problem

When using a texture from WebGLRenderTargetCube (e.g. EquirectangularToCubeGenerator) with PMREMGenerator, the generated environment map does not match the environment, and is flipped on the X axis, unlike when using a CubeTexture.

This can be recreated in the EXR example and:

scene.background = cubemapGenerator.renderTarget;
//cubemapGenerator.dispose();

screenshot from 2018-11-21 15-45-11
screenshot from 2018-11-21 15-42-23

Three.js version
  • Dev
  • r98
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions