SSAO2 impacts GlowLayer

Hello,

GlowLayer intensity is greatly increased, when using with SSA02 enabled (see the image below). Version 4.1 has no such issue.

PG demo: https://playground.babylonjs.com/#B1X4H5#6

Are there any way to make them working together?

Thanks

Pinging @CraigFeldspar

Hello @val,
Using renderingGroupId property on your glow layer makes the layer run before image composition of prepass, and therefore before the gamma transform. Gamma transform then makes the color much more brighter than it should.

With @sebavan, we are currently refactoring with the way prepass runs after a frame, and that should probably solve your issue once we are done with that.
In the meantime, is there any way you can run your glow layer without the renderingGroupId property (i.e scene-wide) ?

Hello @CraigFeldspar,

Thank you for your response.

I’ve tried running glow layer w/o setting rendering group. It has no effect.
PG example.

One more question about SSAO2 - why setting forceGeometryBuffer=true produce strange shadows - they seem inverse?

Thanks

Oh yes sorry, i forgot to add that there is a patch incoming for this rendering order, regardless of renderingGroupId, it’s okay on my local dev but not on the live version yet.

The PR for that is coming, i’ll ping you when in review.

1 Like

Thank you.