Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Alpha channel in internal RT when HDR enabled #2554

Open
zhuxudong opened this issue Feb 13, 2025 · 0 comments
Open

Support Alpha channel in internal RT when HDR enabled #2554

zhuxudong opened this issue Feb 13, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request Rendering Rendering related functions
Milestone

Comments

@zhuxudong
Copy link
Member

We use the R11G11B10_UFloat format when WebGL2 and HDR are enabled, which disables the alpha channel. Perhaps we can add a switch to use R16G16B16A16, thereby enabling the alpha channel.

 _getInternalColorTextureFormat(): TextureFormat {
    return this._enableHDR
      ? this.engine._hardwareRenderer.isWebGL2
        ? TextureFormat.R11G11B10_UFloat
        : TextureFormat.R16G16B16A16
      : TextureFormat.R8G8B8A8;
  }
@zhuxudong zhuxudong added the enhancement New feature or request label Feb 13, 2025
@zhuxudong zhuxudong added this to the 1.5 milestone Feb 13, 2025
@zhuxudong zhuxudong self-assigned this Feb 13, 2025
@zhuxudong zhuxudong added the Rendering Rendering related functions label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Rendering Rendering related functions
Projects
None yet
Development

No branches or pull requests

1 participant