GL.GetGPUProjectionMatrixの中身
code:csharp
private Matrix4x4 GetGPUProjectionMatrix(Matrix4x4 p, bool renderIntoTexture, float f, float n)
{
Matrix4x4 g = Matrix4x4.identity;
g
1, 1
= renderIntoTexture ? -1.0f : 1.0f;
g
2, 2
= -0.5f;
g
2, 3
= -f - 0.5f * n;
return p * g;
}