imageProcessing issue on Color gradient

Hello,when imageProcessingEnabled is turned on by itself, the material rendering effect is normal. However, when other post-processing effects are activated and imageProcessingEnabled is then enabled, areas with gradient colors show noticeable abnormal color transitions. Is there any way to solve this problem?

PG:https://playground.babylonjs.com/#ZY7ZKU#42

I don’t reproduce what you show in the video with the PG you provided?

Opening PG (Playground) directly, turning off or on “Enabled imageProcessing”, you can immediately see the color changes in the scene.


increasing the texture precision did not solve the issue on my end PG, so I would guess some of your shader code suffers from precision issues.

Ah, I didn’t see the changes becaue my screen was too dark!

@CrashMaster
You also have to change the texture type of the FXAA post-process:

2 Likes

I was this close :pinching_hand: to the solution! I always forget the anti-aliasing!

Thank you very much for your help! It’s very useful!

Thank you very much for your help!

1 Like