From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../webglrenderingcontext/uniformmatrix/index.html | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 files/ja/web/api/webglrenderingcontext/uniformmatrix/index.html (limited to 'files/ja/web/api/webglrenderingcontext/uniformmatrix') diff --git a/files/ja/web/api/webglrenderingcontext/uniformmatrix/index.html b/files/ja/web/api/webglrenderingcontext/uniformmatrix/index.html new file mode 100644 index 0000000000..e75f4f634e --- /dev/null +++ b/files/ja/web/api/webglrenderingcontext/uniformmatrix/index.html @@ -0,0 +1,73 @@ +--- +title: 'WebGLRenderingContext.uniformMatrix[234]fv()' +slug: Web/API/WebGLRenderingContext/uniformMatrix +translation_of: Web/API/WebGLRenderingContext/uniformMatrix +--- +
{{APIRef("WebGL")}}
+ +

WebGL APIWebGLRenderingContext.uniformMatrix[234]fv() メソッドは、行列の値をユニフォームの値に指定します。

+ +

このメソッドの 3 つのバージョン (uniformMatrix2fv(), uniformMatrix3fv(), と uniformMatrix4fv()) は、入力値として 2 要素, 3 要素, 4 要素のベクトルをそれぞれ取ります。

+ +

構文

+ +
WebGLRenderingContext.uniformMatrix2fv(location, transpose, value);
+WebGLRenderingContext.uniformMatrix3fv(location, transpose, value);
+WebGLRenderingContext.uniformMatrix4fv(location, transpose, value);
+
+ +

引数

+ +
+
location
+
変更するユニフォーム属性の位置を含むオブジェクト {{domxref("WebGLUniformLocation")}}。この位置は {{domxref("WebGLRenderingContext.getUniformLocation", "getUniformLocation()")}} を用いて入手されます。
+
transpose
+
行列を転置するかどうか指定する {{domxref("GLboolean")}}。false でなければならない。
+
value
+
+

{{jsxref("Float32Array")}} か GLfloat 値の並び。

+
+
+ +

返り値

+ +

undefined

+ +

+ +
gl.uniformMatrix2fv(loc, false, [2,1, 2,2]);
+ +

仕様策定状況

+ + + + + + + + + + + + + + + + + + + +
仕様策定状況コメント
{{SpecName('WebGL', "#5.14.10", "uniformMatrix")}}{{Spec2('WebGL')}}初回定義。
{{SpecName('OpenGL ES 2.0', "glUniform.xml", "glUniform")}}{{Spec2('OpenGL ES 2.0')}}OpenGL API のマニュアルページ。
+ +

ブラウザーの対応

+ + + +

{{Compat("api.WebGLRenderingContext.uniformMatrix2fv")}}

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf