Im trying to Subtract a image with blending. I made a image(brick wall) with a alpha channel(black and white image..vines)
so it is one image. Is this right. ?
Here is my code
D3D11_BLEND_DESC myBlend = { 0 };
myBlend.AlphaToCoverageEnable = false;
myBlend.ransparentDesc.IndependentBlendEnable = false;
myBlend.RenderTarget[0].BlendEnable = true;
myBlend.RenderTarget[0].SrcBlend = D3D11_BLEND_ONE;
myBlend.RenderTarget[0].DestBlend = D3D11_BLEND_ZERO;
myBlendRenderTarget[0].BlendOp = D3D11_BLEND_OP_SUBTRACT;
myBlend.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
myBlendRenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO;
myBlend.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
myBlend.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;
HR(md3dDevice->CreateBlendState(&myBlend &BLENDTEST));
The alpha channel is not being subtracted from the image image. It should be a brick wall with vines.
What is wrong with my code?