|
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-11-19 16:37:20 发布
本文介绍了一种常见的像素渲染方法:先渲染不透明度高的物体,再处理透明度较低的对象。此外,还介绍了如何设置渲染状态来利用像素的alpha通道进行混合。
1057

被折叠的 条评论
为什么被折叠?



