Dark Crystal
Newcomer
- Joined
- Oct 1, 2003
- Messages
- 10
hi, ervery1
how can i use colorkey for texture ?
i tried to do it by this code but it didn't work
and i tried to change the alphaDest , alphaSorc and operation but the result nothing ((just like ORG image))
can any1 help me
i know my english is bad ,, but i'll try my best
thanks in advance
how can i use colorkey for texture ?
i tried to do it by this code but it didn't work
Code:
device.RenderState.AlphaBlendEnable = true;
device.RenderState.AlphaDestinationBlend = Blend.one ;
device.RenderState.AlphaSourceBlend = Blend.SourceAlpha ;
device.RenderState.AlphaBlendOperation = BlendOperation.Add ;
and i tried to change the alphaDest , alphaSorc and operation but the result nothing ((just like ORG image))
can any1 help me
i know my english is bad ,, but i'll try my best
thanks in advance