Unity Shader Matrix[Matrix]

本文介绍了Unity ShaderLab中涉及的坐标变换矩阵,包括对象空间、世界空间、摄像机空间(视图空间)和屏幕空间的概念。通过矩阵乘法解释了如何将几何对象从一个坐标系转换到另一个,以及透视和正交投影的区别。
摘要由CSDN通过智能技术生成

1、关于ShaderLab中内置的Matrix


2、Matrix说明

A、Stages of Vertex Transformation


B、The different Coordinate Systems in OpenGL

There are multiple coordinate Systems involved in 3D Graphics:

  • Object Space
  • World Space (aka Model Space)
  • Camera Space (aka Eye Space or View Space)
  • Screen Space (aka Clip Space)

So, what’s the difference between them?

Object Space

This is the local coordinate System of your Geometrical Objects. Imagine a Cube which consists of 8 vertices:


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值