- 最后登录
- 2019-12-25
- 注册时间
- 2012-8-24
- 阅读权限
- 90
- 积分
- 71088
- 纳金币
- 52336
- 精华
- 343
|
- public Camera mCam;
- public Matrix4x4 originalProjection;
- public void Awake()
- {
- originalProjection = mCam.projectionMatrix;
- }
- void Update()
- {
- // 改变原始矩阵的某些值
- Matrix4x4 p = originalProjection;
- p.m01 += Mathf.Sin(Time.time * 1.2F) * 0.1F;
- p.m10 += Mathf.Sin(Time.time * 1.5F) * 0.1F;
- mCam.projectionMatrix = p;
- }
复制代码 |
|