Alpha混合 [英] Alpha Blending

查看:79
本文介绍了Alpha混合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了C ++ SpriteBatch示例。 它起初并不支持动画精灵,所以我改变了它以支持它们。 不幸的是,我现在似乎无法进行alpha混合工作。 我拍了一些图形日志:

I've downloaded the C++ SpriteBatch sample.  It didn't support animated sprites at first, so I've changed it to support them.  Unfortunately, I can't seem to get alpha blending working now.  I took some graphics logs:

我似乎无法理解为什么蚱蜢背后的像素没有混合。

这是混合状态:

I can't seem to understand why the pixels behind the grasshopper aren't being blended.
Here's the blend state:


混合状态11



一般信息


















混合状态
Alpha To Coverage启用 FALSE
独立Blend Enable FALSE
Blend State
Alpha To Coverage Enable FALSE
Independent Blend Enable FALSE

推荐答案

你好,

请你提供完整的代码来重现这个问题,

Would you please provide us the whole codes to reproduce this issue,

你可以将您的项目上传到skydriver

http://skydrive.live.com/

You can upload your project to skydriver
http://skydrive.live.com/

您没有必要发送整个项目。我们只需要一个最简单的样本来重现问题。您可以从中删除任何机密信息或业务详细信息。

It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

最好的问候,

Jesse

Best regards,
Jesse


这篇关于Alpha混合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆