This section describes the vertex operations.
Vertex operations apply lighting and shading to individual vertices based on information and vertex attributes from the vertex buffer.
The process is also called the vertex shader.
To read about the various processes of the vertex shader,see the separate document Introduction to CTR Graphics.
The vertex shader executes three processes on the vertex attributes input from the vertex buffer.
Table 1 Roles of the Vertex Shader
Shader Role | Description |
---|---|
Coordinate Transformation | Coordinates are converted to window coordinates used for on-screen display and output based on the vertex coordinate and normal vector used as input. |
Generating Texture Coordinates | Vertex coordinates used for texture mapping are generated and output based on the vertex information used as input. |
Vertex Color Generation | Vertex colors are generated based on the result of the lighting process and output based on vertex information used as input. |
CONFIDENTIAL