标签:
if (Input.touchCount>0)
{
CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
}
Matrix4x4 P = GL.GetGPUProjectionMatrix(Camera.main.projectionMatrix, false);//Camera矩阵
Matrix4x4 V = Camera.main.worldToCameraMatrix;//世界矩阵
Matrix4x4 M = debugObject.GetComponent<Renderer>().localToWorldMatrix;//模型矩阵
Matrix4x4 MVP = P * V * M;
debugObject.GetComponent<Renderer>().material.SetMatrix("_MATRIX_MVP", MVP);//截图传入shader中处理
标签:
原文地址:http://www.cnblogs.com/shenshenhua/p/5446007.html