rive-app / rive-unity

MIT License
104 stars 11 forks source link

Gradients cause banding in SRP and Direct3D11 #35

Closed BitBarrel closed 4 months ago

BitBarrel commented 7 months ago

Gradients in a riv file cause banding when using SRP and Direct3D11.

image

Use this riv file with the repo below: banding.zip

https://github.com/rive-app/rive-unity/files/14911845/URPOffsetIssue.zip

JadenH commented 5 months ago

I'm also having this issue, and found a discussion on Discord with others having this issue: https://discord.com/channels/532365473602600965/1215855416043503627

I also linked the Discord thread back to this issue. Fixing this issue would help at least four Unity developers using the Rive Unity runtime!

JadenH commented 5 months ago

This looks related: https://rive.app/community/forums/bugs/fsLjspgTHYcR/transparency-issues-in-ue5/ftjRTvjFapi8

It looks like this was fixed in UE5/DX11! Given both runtimes use DX11, it feels plausible that the fix for UE5/DX11 runtime can probably fix Unity/DX11 runtime. :)

JadenH commented 5 months ago

Also refer to: https://github.com/rive-app/rive-unreal/issues/55

damzobridge commented 5 months ago

Hi Jaden, thanks for detailing the issue. We're looking into a fix for this in Unity.

damzobridge commented 4 months ago

This should be fixed from v0.1.188. Please upgrade and let us know if you're still running into issues with banding.