Home › Forums › TimelineFX Module › DX 11 implementation › Reply To: DX 11 implementation
I checked the image and it is loaded correctly (RGBA), alpha channel is loaded and it’s not 1.
The only change in code I made are these 2 lines :
SrcBlend = D3D11_BLEND_SRC_ALPHA;
DestBlend = D3D11_BLEND_INV_SRC_ALPHA;
changed to
SrcBlend = D3D11_BLEND_ONE;
DestBlend = D3D11_BLEND_ONE;
Thanks, I managed to load sprite sheets correctly. Just one more details about sprite sheets : do frames start at 0 and are sorted in rows?
Example :
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15