Vertex coloring Machine & pixel coloring Machine

Source: Internet
Author: User
Tags pixel coloring
Vertex shaderWhat is a vertex shader? 1. the vertex shader is a set of commands. CodeThis set of command code is executed when the vertex is rendered. 2. At the same time, only one vertex shader can be activated. 3. Each source vertex shader can have a maximum of 128 commands (dirextx8.1), and 256 in directx9. Why do we need to use vertex pasters? 1. the vertex shader can improve the rendering speed. 2. How can you use the vertex coloring tool for cloth simulation, high-level animation, real-time perspective effect modification (such as underwater effect), and advanced brightness (requiring pixel coloring tool support? To put it simply, the operation is as follows: when a vertex is rendered, the API will execute the commands you write in the vertex shader. By using this method, you can control each vertex, including rendering, determining the position, and whether the vertex is displayed on the screen.

 

Pixel shaderWhat is a pixel shader? The 1-pixel shader is also a set of commands that are executed when the pixels in the vertex are rendered. During each execution time, many pixels are rendered. (The number of pixels depends on the screen resolution.) The instructions of the 2 pixel shader are very similar to those of the vertex shader. The pixel shadow does not exist as a vertex shadow. During running, they must have a vertex shader activated. Why do we need to use the pixel coloring tool? In the past, the 1-pixel shader was an advanced graphics technology designed to speed up rendering. 2. Like the vertex shader, the pixel shader is used, ProgramUsers can customize rendering of each pixel. How does the pixel shader work? One pixel shader operates on individual pixels on the vertex. Like the vertex shader, the pixel shader Source codeSome APIs are also used to load hardware.

 

Workflow:

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.