New Situation of xNa texture Loading

Source: Internet
Author: User

After loading the xNa texture, we found that the alpha channel was very strange.

Even if I use the shader, I feel that the color value has been multiplied by Alpha, while the natural texture2d. loadfromstream only supports PNG GIF. jpg.

The PNG channel information is incomplete, and the other two do not.

However, the text cache I created seems to show normal and easy-to-understand alpha behavior.

Does the loading of texture also need to be processed?

Does the xNa development team think that we only use Alpha information for transparency? Or there are some settings that I need to study carefully.

It turns out that there is a premultiplication Alpha and colorkey .........

The colorkey here also has the color value and Alpha, so it should be disabled here for normal behavior.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.