1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
3<!-- InstanceBegin template="/Templates/default_template.dwt" codeOutsideHTMLIsLocked="false" -->
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta http-equiv="Content-Style-Type" content="text/css" />
7<!-- InstanceBeginEditable name="CSS の相対パス指定" -->
8<link href="../../../common/manual.css" rel="stylesheet" type="text/css" />
9<!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="ページのタイトル" -->
10<title>Vertex Operations (Vertex Shader)</title>
11<!-- InstanceEndEditable -->
12</head>
13<body>
14<div>
15  <div class="body"> <!-- InstanceBeginEditable name="本文のタイトル" -->
16    <h1>Vertex Operations (Vertex Shader)</h1>
17    <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="本文" -->
18    <p>This section describes the vertex operations.</p><!-- #BeginLibraryItem "/Library/glossary_vertex_shader.lbi" --> <!-- 頂点シェーダー ( vertex_shader ) -->
19<p><I>Vertex operations</I> apply lighting and shading to individual vertices based on information  and <a href="../../../glossary/index.html#vertex_attribute">vertex attributes</a> from the vertex buffer.<br /></p>
20<p>The process is also called the <I>vertex shader</I>.</p>
21<!-- #EndLibraryItem --><p>To read about the various processes of the vertex shader,see the separate document <I>Introduction to CTR Graphics</I>.</p>
22    <!--<h2>頂点属性の種類</h2>     <p>頂点属性とは、頂点ごとに扱えるデータの種類のことで、1 つの頂点に対して頂点属性を 12 種類まで設定することができます。</p>     <p>頂点属性により、ポリゴンモデルが構成されています。</p>     <p>表 1 モデルの形状を構成する頂点属性の一部</p>     <table>       <thead>         <tr>           <th>頂点属性の種類</th>           <th>説明</th>         </tr>       </thead>       <tbody>         <tr>           <th>頂点座標</th>           <td>ポリゴン面を構成する各頂点の位置をあらわす座標情報です。 3 つ以上の頂点からポリゴン面を構成します。</td>         </tr>         <tr>           <th>法線ベクトル</th>           <td>ポリゴン面を構成する各頂点の方向をあらわす情報です。ライティングによる陰影処理に使用できます。</td>         </tr>         <tr>           <th>テクスチャ座標</th>           <td>ポリゴン面を構成する各頂点とテクスチャ画像の位置をあわせる為に使用する座標情報です。<br />             CreativeStudio では、テクスチャ座標を 3 つまで使用できます。</td>         </tr>         <tr>           <th>頂点カラー</th>           <td>頂点の色をあらわす情報です。 3D グラフィックスツールで直接色を指定したり、ライティングの結果の色を格納することができます。</td>         </tr>       </tbody>     </table>-->
23    <h3>Vertex Shader Processes</h3>
24    <p>The vertex shader executes three processes on the vertex attributes input from the vertex buffer.</p>
25    <p>Table 1 Roles of the Vertex Shader</p>
26    <table>
27      <thead>
28        <tr>
29          <th>Shader Role</th>
30          <th>Description</th>
31        </tr>
32      </thead>
33      <tbody>
34        <tr>
35          <th>Coordinate Transformation</th>
36          <td>Coordinates are converted to window coordinates used for on-screen display and output based on the vertex coordinate and normal vector used as input.</td>
37        </tr>
38        <tr>
39          <th>Generating Texture Coordinates</th>
40          <td>Vertex coordinates used for texture mapping are generated and output based on the vertex information used as input.</td>
41        </tr>
42        <tr>
43          <th>Vertex Color Generation</th>
44          <td>Vertex colors are generated based on the result of the lighting process and output based on vertex information used as input.</td>
45        </tr>
46      </tbody>
47    </table>
48    <!-- InstanceEndEditable --> </div>
49  <div class="footer" />
50</div>
51<hr><p>CONFIDENTIAL</p></body>
52<!-- InstanceEnd -->
53</html>