Manage shader-Summary

Source: Internet
Author: User
Summary

In this chapter, I am sure you understand how shader works, including how to declare vertex formats and how to process vertex data through shader. If you have had the shader programming experience before, this chapter may not be the most exciting, but you may have learned some details that you did not know before.

The following steps describe how to process 3D data in xNa:

  • Obtain Three-dimensional Geometric data from the model class (or custom vertex buffers.

  • Please confirm your shader and xNaCodeUse the same vertex format.

  • Call shader technique and execute each pass to render your 3D data.

  • Vertex shader processes the input data and passes the vertexoutput structure to pixel shader to convert the world to the correct position on the screen.

  • Pixel shader finally displays each pixel on the screen. Make sure that pixel shader is fast and small.

In the next chapter, you will learn about the effects of Normal mapping (normal ing) shader, prepare for creating your own game in Chapter 8th, and learn the effects of post screen shader in Chapter 8th.

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.