Skip to content

Bloom effect inverts when radius > 1 #32445

@jacobsantos2001

Description

@jacobsantos2001

Description

When the bloom radius > 1, the effect starts to "invert". See below:

radius = 0.66:

Image

radius = 1.52:

Image

radius = 5:

Image

Is this intended behavior? Should the radius be clamped between 0 and 1?

Reproduction steps

  1. Edit the radius slider on any bloom example like unreal bloom to accept values larger than 1
  2. Move the radius slider > 1 and observe the invert

Code

The lerpBloomFactor in the frag shader in UnrealBloomPass.js can produce negative values when bloomRadius is > 1

float lerpBloomFactor(const in float factor) {
float mirrorFactor = 1.2 - factor;
return mix(factor, mirrorFactor, bloomRadius);
}

For a repro, see below jsfiddle.

Live example

Screenshots

See above

Version

latest

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions