Skip to content

Certain effects produce invalid alpha values #719

@vanruesc

Description

@vanruesc

Description of the bug

Related: #706 (reply in thread)

BloomEffect and TextureEffect currently produce incorrect alpha values in v6 and v7.

The output should be max(inputColor.a, texel.a). Otherwise, the blurred colors end up having 0 alpha which is invalid.

To reproduce

https://stackblitz.com/edit/postprocessing-v6-2p8ywufj?file=src%2FApp.js

Expected behavior

Correct color results.

Screenshots

inputColor.a max(inputColor.a, texel.a)

Library versions used

  • Three: 0.178.0
  • Post Processing: 6.37.5, 7.0.0-beta.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions