What you usually do is render the solid objects first. Then you render the less opaque objects. What you will also need to do is set some render states for the coloring of the pixels to make use of the alpha component of your pixels. Device.RenderState.SourceBlend = Blend.SourceAlpha; Device.RenderState.DestinationBlend = Blend.InvSourceAlpha; Device.RenderState.AlphaBlendEnable = true; |
XNA Transparent textures
最新推荐文章于 2025-08-07 09:33:59 发布