FNA-XNA / FNA

FNA - Accuracy-focused XNA4 reimplementation for open platforms
https://fna-xna.github.io/
2.61k stars 265 forks source link

Enable Alpha8 render targets #485

Open kg opened 5 months ago

kg commented 5 months ago

I vaguely recall this working in XNA - I think escape goat 2 used it. Right now it works for D3D11 and Vulkan with this change, but the behavior is different when sampling from the resulting RT.

D3D11:

d3d11

Vulkan:

vulkan

Maybe an sRGB vs linear thing? Not sure.

kg commented 5 months ago

The difference is in the way blending/rendering works for the RT; sampling is consistent. Disabling blending when drawing to it makes it work the same on both.

flibitijibibo commented 5 months ago

Let's add this when gpu is ready, we should make sure it works there first.