Vignette effect is causing a color banding artifacts

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
User avatar
King of Worms
Posts: 4753
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Vignette effect is causing a color banding artifacts

Post by King of Worms »

Hi, this issue is nicely visible in a fog.
When I enable the vignette, I can see these color gradients. I tried enabling dithering, but it does not help. Might there be some way to solve it?

1st image - vignette effect OFF
2nd image - vignette ON and zoomed in
Spoiler!
01.jpg
01.jpg (637.37 KiB) Viewed 322 times
02.jpg
02.jpg (383.47 KiB) Viewed 322 times

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Vignette effect is causing a color banding artifacts

Post by Interkarma »

Other than tweaking intensity and smoothness, there's not much to do here. Remember, the PPv2 stack isn't something by DFU, we're just providing toggles and sliders to Unity's own postprocessing solution.

Below are the effects available in PPv2, note dither isn't listed for any of the render pipelines.

https://docs.unity3d.com/2019.4/Documen ... d-location

The dither toggle in DFU is for the hard-coded "magic dither" at the end of Unity's Uber.shader and FinalPass.shader. I originally just disabled this, then later added a toggle.

https://github.com/Interkarma/daggerfal ... 8cb67603f2

This step really just creates noise imo, and I agree with one of your earlier comments that it should be removed or replaced with a custom dither postprocess shader. If anyone knows a good PPv2-compatible dither postprocess shader for Unity with a free license, I'll look at including it in a future release.

Post Reply