Skip to content

Commit f61af9c

Browse files
committed
contents/en/documents/shader: update (column major)
1 parent f5724cd commit f61af9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contents/en/documents/shader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3>Built-in types</h3>
9898
<p><code>float</code> is a floating point number. Unlike Go's <code>float32</code> and <code>float64</code>, <code>float</code> doesn't have a guarantee for the precision.</p>
9999
<p><code>vec2</code>, <code>vec3</code>, <code>vec4</code>, called vectors, are tuples that has 2, 3, and 4 components respectively. Each component is <code>float</code>. Swizzling operation is available on vector values.</p>
100100
<p><code>ivec2</code>, <code>ivec3</code>, <code>ivec4</code> are also vectors and each component is <code>int</code>.</p>
101-
<p><code>mat2</code>, <code>mat3</code>, <code>mat4</code> are 2, 3 and 4 dimensional square matrices. Each component is <code>float</code>.</p>
101+
<p><code>mat2</code>, <code>mat3</code>, <code>mat4</code> are 2, 3 and 4 dimensional square matrices. Each component is <code>float</code>. Like GLSL, they use column-major order.</p>
102102
<p>Kage also supports arrays. Kage doesn't support structs yet.</p>
103103
<h3>Initializing functions for built-in types</h3>
104104
<p>Similar to Go, you can get the type's value by using the type name as a function. Vector types and matrix types are so special that they can take flexible arguments.</p>

contents/ja/documents/shader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3>組み込み型</h3>
9898
<p><code>float</code> は浮動小数点型です。 Go の <code>float32</code><code>float64</code> とは異なり精度の保証がありません。</p>
9999
<p><code>vec2</code><code>vec3</code><code>vec4</code> はベクターと呼ばれ、それぞれ 2、 3、 4 つの値の組を表す型です。各要素は <code>float</code> です。 Swizzling と呼ばれる操作を行えます。</p>
100100
<p><code>ivec2</code><code>ivec3</code><code>ivec4</code> も同様にベクターであり、各要素は <code>int</code> です。</p>
101-
<p><code>mat2</code><code>mat3</code><code>mat4</code> はそれぞれ 2、 3、 4 次の正方行列を表す型です。各要素は <code>float</code> です。</p>
101+
<p><code>mat2</code><code>mat3</code><code>mat4</code> はそれぞれ 2、 3、 4 次の正方行列を表す型です。各要素は <code>float</code> です。 GLSL などと同じく Column-major です。</p>
102102
<p>Kage は他に配列型をサポートします。構造体はまだサポートされていません。</p>
103103
<h3>組み込み型の初期化関数</h3>
104104
<p>Go と似ていますが、型名を関数のように使うことでその型の値を得ることが出来ます。ベクター型と行列型だけ特殊で、引数を柔軟に取りえます。</p>

0 commit comments

Comments
 (0)