数値の型 ======== 頂点シェーダでは **float** 以外にベクトルや行列が使えます。 使える数値の型は以下の通りです。 .. csv-table:: :header: 型, 説明 :widths: 5, 15 **float** , 32bitの浮動小数点数 **vec2** 、 **vec3** 、 **vec4** , 2/3/4次元の **float** のベクトル **mat2** 、 **mat3** 、 **mat4** , 2x2/3x3/4x4の **float** の行列 **mat2x2** 、 **mat2x3** 、 **mat2x4** , 2x2/2x3/2x4の **float** の行列 **mat3x2** 、 **mat3x3** 、 **mat3x4** , 3x2/3x3/3x4の **float** の行列 **mat4x2** 、 **mat4x3** 、 **mat4x4** , 4x2/4x3/4x4の **float** の行列