言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GL.GetGPUProjectionMatrix

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static function GetGPUProjectionMatrix(proj: Matrix4x4, renderIntoTexture: bool): Matrix4x4;
public static Matrix4x4 GetGPUProjectionMatrix(Matrix4x4 proj, bool renderIntoTexture);
public static def GetGPUProjectionMatrix(proj as Matrix4x4, renderIntoTexture as bool) as Matrix4x4

Description

カメラの射影行列から、GPU の射影行列を計算します

Unityは、投影行列はOpenGLの規則に従います。ですがいくつかのプラットフォーム上では ネイティブAPIにあわせてビットを変換しなくてはいけません。 この関数を使用して最終的な投影行列の計算方法は次のようになります。値は シェーダの UNITY_MATRIX_P 行列で提供されるものと一致します。 この投影行列をRenderTextureにレンダリングしたいのであれば renderIntoTexture をtrueに設定します。いくつかのプラットフォーム上で これが最終的な射影行列のようになります。